ACE_Thread_Strategy< SVC_HANDLER > Class Template ReferenceDefines the interface for specifying a concurrency strategy for a SVC_HANDLER based on multithreading. More...
Inheritance diagram for ACE_Thread_Strategy< SVC_HANDLER >:
![]()
Collaboration diagram for ACE_Thread_Strategy< SVC_HANDLER >:
![]()
Detailed Descriptiontemplate<class SVC_HANDLER>
Defines the interface for specifying a concurrency strategy for a SVC_HANDLER based on multithreading.
|
typedef ACE_Concurrency_Strategy<SVC_HANDLER> ACE_Thread_Strategy< SVC_HANDLER >::base_type |
typedef ACE_Concurrency_Strategy<SVC_HANDLER> ACE_Thread_Strategy< SVC_HANDLER >::inherited [protected] |
ACE_INLINE ACE_Thread_Strategy< SVC_HANDLER >::ACE_Thread_Strategy | ( | int | flags = 0 |
) | [inline] |
"Do-nothing constructor"
ACE_INLINE ACE_Thread_Strategy< SVC_HANDLER >::ACE_Thread_Strategy | ( | ACE_Thread_Manager * | tm, | |
long | thr_flags, | |||
int | n_threads = 1 , |
|||
int | flags = 0 | |||
) | [inline] |
Initialize the strategy.
ACE_Thread_Strategy< SVC_HANDLER >::~ACE_Thread_Strategy | ( | void | ) | [inline, virtual] |
int ACE_Thread_Strategy< SVC_HANDLER >::open | ( | ACE_Thread_Manager * | tm, | |
long | thr_flags, | |||
int | n_threads = 1 , |
|||
int | flags = 0 | |||
) | [inline, virtual] |
Initialize the strategy.
int ACE_Thread_Strategy< SVC_HANDLER >::activate_svc_handler | ( | SVC_HANDLER * | svc_handler, | |
void * | arg = 0 | |||
) | [inline, virtual] |
Activate the svc_handler with an appropriate concurrency strategy. This method activates the SVC_HANDLER by first calling its <open> method and then calling its <activate> method to turn it into an active object.
Reimplemented from ACE_Concurrency_Strategy< SVC_HANDLER >.
void ACE_Thread_Strategy< SVC_HANDLER >::dump | ( | void | ) | const [inline] |
ACE_Thread_Strategy< SVC_HANDLER >::ACE_ALLOC_HOOK_DECLARE |
ACE_Thread_Manager* ACE_Thread_Strategy< SVC_HANDLER >::thr_mgr_ [protected] |
Thread manager for this class (must be provided).
long ACE_Thread_Strategy< SVC_HANDLER >::thr_flags_ [protected] |
Flags to pass into the <SVC_HANDLER::activate> method.
int ACE_Thread_Strategy< SVC_HANDLER >::n_threads_ [protected] |
Number of threads to spawn.