#include <Strategies_T.h>
Inheritance diagram for ACE_Thread_Strategy< SVC_HANDLER >:


Public Types | |
| typedef ACE_Concurrency_Strategy< SVC_HANDLER > | base_type |
Public Methods | |
| ACE_Thread_Strategy (int flags=0) | |
| "Do-nothing constructor" | |
| ACE_Thread_Strategy (ACE_Thread_Manager *tm, long thr_flags, int n_threads=1, int flags=0) | |
| Initialize the strategy. | |
| virtual int | open (ACE_Thread_Manager *tm, long thr_flags, int n_threads=1, int flags=0) |
| Initialize the strategy. | |
| virtual | ~ACE_Thread_Strategy (void) |
| virtual int | activate_svc_handler (SVC_HANDLER *svc_handler, void *arg=0) |
| void | dump (void) const |
| Dump the state of an object. | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. | |
Protected Types | |
| typedef ACE_Concurrency_Strategy< SVC_HANDLER > | inherited |
Protected Attributes | |
| ACE_Thread_Manager * | thr_mgr_ |
| Thread manager for this class (must be provided). | |
| long | thr_flags_ |
| Flags to pass into the <SVC_HANDLER::activate> method. | |
| int | n_threads_ |
| Number of threads to spawn. | |
This class provides a strategy that manages the creation of threads to handle requests from clients concurrently. It behaves as a "thread factory", spawning threads "on-demand" to run the service specified by a user-supplied <SVC_HANDLER>.
|
|||||
|
|
|
|||||
|
|
|
||||||||||
|
"Do-nothing constructor"
|
|
||||||||||||||||||||||||
|
Initialize the strategy.
|
|
||||||||||
|
|
|
||||||||||||||||
|
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 >. |
|
||||||||||
|
Dump the state of an object.
Reimplemented from ACE_Concurrency_Strategy< SVC_HANDLER >. |
|
||||||||||||||||||||||||
|
Initialize the strategy.
|
|
|||||
|
Declare the dynamic allocation hooks.
Reimplemented from ACE_Concurrency_Strategy< SVC_HANDLER >. |
|
|||||
|
Number of threads to spawn.
|
|
|||||
|
Flags to pass into the <SVC_HANDLER::activate> method.
|
|
|||||
|
Thread manager for this class (must be provided).
|
1.2.18