#include <EventChannelThreads.h>
Inheritance diagram for qpid::sys::EventChannelThreads:
Public Member Functions | |
void | postEvent (Event &event) |
Post event to the underlying channel. | |
void | postEvent (Event *event) |
Post event to the underlying channel Must not be 0. | |
void | shutdown () |
Terminate all threads. | |
void | join () |
Wait for all threads to terminate. | |
Static Public Member Functions | |
static EventChannelThreads::shared_ptr | create (EventChannel::shared_ptr channel) |
Create the thread pool and start initial threads. |
Threads run a loop { e = getEvent(); e->dispatch(); } The size of the thread pool is automatically adjusted to optimal size.
void qpid::sys::EventChannelThreads::shutdown | ( | ) |
Terminate all threads.
Returns immediately, use join() to wait till all threads are shut down.