qpid::sys::EventChannelThreads Class Reference

Dynamic thread pool serving an EventChannel. More...

#include <EventChannelThreads.h>

Inheritance diagram for qpid::sys::EventChannelThreads:

Inheritance graph
[legend]
Collaboration diagram for qpid::sys::EventChannelThreads:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

Dynamic thread pool serving an EventChannel.

Threads run a loop { e = getEvent(); e->dispatch(); } The size of the thread pool is automatically adjusted to optimal size.


Member Function Documentation

void qpid::sys::EventChannelThreads::shutdown (  ) 

Terminate all threads.

Returns immediately, use join() to wait till all threads are shut down.


The documentation for this class was generated from the following file:
Generated on Tue Apr 17 14:22:22 2007 for Qpid by  doxygen 1.4.7