Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Concurrency_Strategy Class Template Reference

Defines the interface for specifying a concurrency strategy for a SVC_HANDLER. More...

#include <Strategies_T.h>

Inheritance diagram for ACE_Concurrency_Strategy

Inheritance graph
[legend]
List of all members.

Public Methods

 ACE_Concurrency_Strategy (int flags = 0)
 Constructor.

virtual int activate_svc_handler (SVC_HANDLER *svc_handler, void *arg = 0)
virtual ~ACE_Concurrency_Strategy (void)
void dump (void) const
 Dump the state of an object.


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.


Protected Attributes

int flags_
 Flags that are parsed to set options for the connected <SVC_HANDLER>.


Detailed Description

template<class SVC_HANDLER> template class ACE_Concurrency_Strategy

Defines the interface for specifying a concurrency strategy for a SVC_HANDLER.

Default behavior is to activate the SVC_HANDLER by calling its <open> method (which allows the SVC_HANDLER to define its own concurrency strategy). However, subclasses can override this default strategy to do more sophisticated concurrency activations (such as creating the SVC_HANDLER as an active object via multi-threading or multi-processing).


Constructor & Destructor Documentation

template<classSVC_HANDLER>
ASYS_INLINE ACE_Concurrency_Strategy< SVC_HANDLER >::ACE_Concurrency_Strategy<SVC_HANDLER> ( int flags = 0 )
 

Constructor.

template<classSVC_HANDLER>
ASYS_INLINE ACE_Concurrency_Strategy< SVC_HANDLER >::~ACE_Concurrency_Strategy<SVC_HANDLER> ( void ) [virtual]
 


Member Function Documentation

template<classSVC_HANDLER>
int ACE_Concurrency_Strategy<SVC_HANDLER>::activate_svc_handler ( SVC_HANDLER * svc_handler,
void * arg = 0 ) [virtual]
 

Activate the <svc_handler> with an appropriate concurrency strategy. The default behavior of this method is to activate the SVC_HANDLER by calling its <open> method (which allows the SVC_HANDLER to define its own concurrency strategy).

Reimplemented in ACE_Reactive_Strategy, ACE_Thread_Strategy, ACE_Process_Strategy, and ACE_NOOP_Concurrency_Strategy.

template<classSVC_HANDLER>
void ACE_Concurrency_Strategy<SVC_HANDLER>::dump ( void ) const
 

Dump the state of an object.

Reimplemented in ACE_Reactive_Strategy, ACE_Thread_Strategy, and ACE_Process_Strategy.


Member Data Documentation

template<classSVC_HANDLER>
ACE_Concurrency_Strategy<SVC_HANDLER>::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Reimplemented in ACE_Reactive_Strategy, ACE_Thread_Strategy, and ACE_Process_Strategy.

template<classSVC_HANDLER>
int ACE_Concurrency_Strategy<SVC_HANDLER>::flags_ [protected]
 

Flags that are parsed to set options for the connected <SVC_HANDLER>.


The documentation for this class was generated from the following files:
Generated at Sat Dec 1 11:01:21 2001 for ACE by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000