Reputation: 8904
Boost does not provide single-threaded event-driven model, such that was widespread on Unix before pthreads -- mainloop + "callbacks", does it ?
For example, if I wanted to use boost::message_queue in single-threaded app, and mix it with timers and other asynchronous events (mainloop), then boost does not support it, am I right ?
Upvotes: 6
Views: 4937
Reputation: 393174
I'd look at
If you are going to combine the two, be sure to use Boost Signals2 (because it supports threading).
Upvotes: 10
Reputation: 25426
boost::interprocess::message_queue
is designed for multiprocessing. In a single-threaded process you can always use an std::queue
.
Upvotes: 6