ACE_Process_Strategy< SVC_HANDLER > Class Template ReferenceDefines the interface for specifying a concurrency strategy for aSVC_HANDLER based on multiprocessing.
More...
Inheritance diagram for ACE_Process_Strategy< SVC_HANDLER >:
Collaboration diagram for ACE_Process_Strategy< SVC_HANDLER >:
Detailed Descriptiontemplate<class SVC_HANDLER>
Defines the interface for specifying a concurrency strategy for a |
typedef ACE_Concurrency_Strategy<SVC_HANDLER> ACE_Process_Strategy< SVC_HANDLER >::base_type |
typedef ACE_Concurrency_Strategy<SVC_HANDLER> ACE_Process_Strategy< SVC_HANDLER >::inherited [protected] |
ACE_INLINE ACE_Process_Strategy< SVC_HANDLER >::ACE_Process_Strategy | ( | size_t | n_processes = 1 , |
|
ACE_Event_Handler * | acceptor = 0 , |
|||
ACE_Reactor * | reactor = 0 , |
|||
int | avoid_zombies = 0 | |||
) | [inline] |
Initialize the strategy. If avoid_zombies is non-0 then set a flag to ACE::fork() to avoid zombies.
ACE_Process_Strategy< SVC_HANDLER >::~ACE_Process_Strategy | ( | void | ) | [inline, virtual] |
int ACE_Process_Strategy< SVC_HANDLER >::open | ( | size_t | n_processes = 1 , |
|
ACE_Event_Handler * | acceptor = 0 , |
|||
ACE_Reactor * | reactor = 0 , |
|||
int | avoid_zombies = 0 | |||
) | [inline, virtual] |
Initialize the strategy. If avoid_zombies is non-0 then set a flag to ACE::fork() to avoid zombies.
int ACE_Process_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 forking and then calling the open()
method of the SVC_HANDLER in the child.
Reimplemented from ACE_Concurrency_Strategy< SVC_HANDLER >.
void ACE_Process_Strategy< SVC_HANDLER >::dump | ( | void | ) | const [inline] |
ACE_Process_Strategy< SVC_HANDLER >::ACE_ALLOC_HOOK_DECLARE |
size_t ACE_Process_Strategy< SVC_HANDLER >::n_processes_ [protected] |
Number of processes to spawn.
ACE_Event_Handler* ACE_Process_Strategy< SVC_HANDLER >::acceptor_ [protected] |
This is the Acceptor
in the parent is listening on. We need to make sure that we remove it from the Reactor and close it down in the child.
ACE_Reactor* ACE_Process_Strategy< SVC_HANDLER >::reactor_ [protected] |
This is the reactor the child is using in conjunction with the acceptor. We need to remove the acceptor from this reactor in the child.