ACE 8.0.5
Loading...
Searching...
No Matches
ACE_Concurrency_Strategy< SVC_HANDLER > 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< SVC_HANDLER >:

Public Types

typedef SVC_HANDLER::addr_type addr_type
typedef SVC_HANDLER handler_type
typedef SVC_HANDLER::stream_type stream_type

Public Member Functions

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

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.

Protected Attributes

int flags_

Detailed Description

template<class SVC_HANDLER>
class ACE_Concurrency_Strategy< SVC_HANDLER >

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).

Member Typedef Documentation

◆ addr_type

template<class SVC_HANDLER>
typedef SVC_HANDLER::addr_type ACE_Concurrency_Strategy< SVC_HANDLER >::addr_type

◆ handler_type

template<class SVC_HANDLER>
typedef SVC_HANDLER ACE_Concurrency_Strategy< SVC_HANDLER >::handler_type

◆ stream_type

template<class SVC_HANDLER>
typedef SVC_HANDLER::stream_type ACE_Concurrency_Strategy< SVC_HANDLER >::stream_type

Constructor & Destructor Documentation

◆ ACE_Concurrency_Strategy()

template<class SVC_HANDLER>
ACE_Concurrency_Strategy< SVC_HANDLER >::ACE_Concurrency_Strategy ( int flags = 0)
inline

Constructor.

◆ ~ACE_Concurrency_Strategy()

template<class SVC_HANDLER>
ACE_Concurrency_Strategy< SVC_HANDLER >::~ACE_Concurrency_Strategy ( )
virtual

Member Function Documentation

◆ activate_svc_handler()

template<class SVC_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_NOOP_Concurrency_Strategy< SVC_HANDLER >, ACE_Process_Strategy< SVC_HANDLER >, ACE_Reactive_Strategy< SVC_HANDLER >, and ACE_Thread_Strategy< SVC_HANDLER >.

◆ dump()

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

Dump the state of an object.

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

template<class SVC_HANDLER>
ACE_Concurrency_Strategy< SVC_HANDLER >::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

◆ flags_

template<class SVC_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: