#include <CEC_MT_Dispatching.h>
Inheritance diagram for TAO_CEC_MT_Dispatching:
Public Methods | |
TAO_CEC_MT_Dispatching (int nthreads, int thread_creation_flags, int thread_priority, int force_activate) | |
Constructor It will create <nthreads> servicing threads... More... | |
virtual void | activate (void) |
Initialize all the data structures, activate any internal threads, etc. More... | |
virtual void | shutdown (void) |
Deactivate any internal threads and cleanup internal data structures, it should only return once the threads have finished their jobs. More... | |
virtual void | push (TAO_CEC_ProxyPushSupplier *proxy, const CORBA::Any &event ACE_ENV_ARG_DECL) |
The consumer represented by <proxy> should receive <event>. More... | |
virtual void | push_nocopy (TAO_CEC_ProxyPushSupplier *proxy, CORBA::Any &event ACE_ENV_ARG_DECL) |
Private Attributes | |
ACE_Thread_Manager | thread_manager_ |
Use our own thread manager. More... | |
int | nthreads_ |
The number of active tasks. More... | |
int | thread_creation_flags_ |
The flags (THR_BOUND, THR_NEW_LWP, etc.) used to create the dispatching threads. More... | |
int | thread_priority_ |
The priority of the dispatching threads. More... | |
int | force_activate_ |
If activation at the requested priority fails then we fallback on the defaults for thread activation. More... | |
TAO_CEC_Dispatching_Task | task_ |
The dispatching task. More... | |
TAO_SYNCH_MUTEX | lock_ |
Synchronize access to internal data. More... | |
int | active_ |
Are the threads running? More... |
This strategy uses a single queue, serviced by one or more threads. It's main purpose is to decouple the suppliers from the client execution time, specially in the collocated case.
|
Constructor It will create <nthreads> servicing threads...
|
|
Initialize all the data structures, activate any internal threads, etc.
Reimplemented from TAO_CEC_Dispatching. |
|
The consumer represented by <proxy> should receive <event>.
Reimplemented from TAO_CEC_Dispatching. |
|
Reimplemented from TAO_CEC_Dispatching. |
|
Deactivate any internal threads and cleanup internal data structures, it should only return once the threads have finished their jobs.
Reimplemented from TAO_CEC_Dispatching. |
|
Are the threads running?
|
|
If activation at the requested priority fails then we fallback on the defaults for thread activation.
|
|
Synchronize access to internal data.
|
|
The number of active tasks.
|
|
The dispatching task.
|
|
The flags (THR_BOUND, THR_NEW_LWP, etc.) used to create the dispatching threads.
|
|
Use our own thread manager.
|
|
The priority of the dispatching threads.
|