|
Safir SDK Core
|
The class makes a thread switch and perform a dispatch on Dob connection. More...
#include <Safir/Utilities/AsioDispatcher.h>
Public Member Functions | |
| AsioDispatcher (const Safir::Dob::Connection &connection, boost::asio::io_context &ioContext) | |
| Strandless constructor. | |
| AsioDispatcher (const Safir::Dob::Connection &connection, boost::asio::io_context::strand &strand) | |
| Stranded constructor. | |
| AsioDispatcher (const AsioDispatcher &)=delete | |
| AsioDispatcher & | operator= (const AsioDispatcher &)=delete |
| boost::asio::io_context::strand & | Strand () |
| Get the strand that the dispatcher uses. | |
Public Member Functions inherited from Safir::Dob::Dispatcher | |
| virtual | ~Dispatcher () |
| Virtual destructor is needed since we have virtual member functions. | |
Public Member Functions inherited from Safir::Dob::Internal::ConsumerBase | |
| virtual | ~ConsumerBase () |
The class makes a thread switch and perform a dispatch on Dob connection.
| Safir::Utilities::AsioDispatcher::AsioDispatcher | ( | const Safir::Dob::Connection & | connection, |
| boost::asio::io_context & | ioContext ) |
Strandless constructor.
Creates an AsioDispatcher that performs Dispatches using an internal strand. I.e. all Dob callbacks will be performed from within the same - hidden - strand.
If you need access to the strand, use the other constructor.
| [in] | connection | - The dob connection. |
| [in] | ioContext | - The io_context that runs the main loop |
| Safir::Utilities::AsioDispatcher::AsioDispatcher | ( | const Safir::Dob::Connection & | connection, |
| boost::asio::io_context::strand & | strand ) |
Stranded constructor.
Creates an AsioDispatcher that performs Dispatches using a specified strand. I.e. all Dob callbacks will be performed from the given strand.
| [in] | connection | - The dob connection. |
| [in] | strand | - The strand to dispatch from. |
|
delete |
|
delete |
| boost::asio::io_context::strand & Safir::Utilities::AsioDispatcher::Strand | ( | ) |
Get the strand that the dispatcher uses.