farm-ng-core
|
Contains a stranded context to post and dispatch handlers with the guarantee that none of the handlers will execute concurrently. More...
#include <context.h>
Public Member Functions | |
ContextStrand (Context const &ctx) | |
Default constructor of a stranded context based on an allocated Context . More... | |
Context::IoContext & | getAsioIoContext () |
Return the io_context owned by the Context member. More... | |
Context::Strand & | getAsioStrand () |
Return the io_context::strand ` owned by the object instance. More... | |
Context | getContext () const |
Returns the owned Context by the component. More... | |
Contains a stranded context to post and dispatch handlers with the guarantee that none of the handlers will execute concurrently.
More info: https://www.boost.org/doc/libs/1_78_0/doc/html/boost_asio/reference/io_context__strand.html
|
explicit |
Default constructor of a stranded context based on an allocated Context
.
Context::IoContext & farm_ng::ContextStrand::getAsioIoContext | ( | ) |
Return the io_context
owned by the Context
member.
Context::Strand & farm_ng::ContextStrand::getAsioStrand | ( | ) |
Return the io_context::strand
` owned by the object instance.