ACE 8.0.5
Loading...
Searching...
No Matches
ACE_Reactive_Strategy< SVC_HANDLER > Class Template Reference

Defines the interface for specifying a reactive concurrency strategy for a SVC_HANDLER, where all upcalls to handle_*() methods run in the reactor's thread of control. More...

#include <Strategies_T.h>

Inheritance diagram for ACE_Reactive_Strategy< SVC_HANDLER >:
Collaboration diagram for ACE_Reactive_Strategy< SVC_HANDLER >:

Public Types

typedef ACE_Concurrency_Strategy< SVC_HANDLER > base_type
Public Types inherited from ACE_Concurrency_Strategy< SVC_HANDLER >
typedef SVC_HANDLER::addr_type addr_type
typedef SVC_HANDLER handler_type
typedef SVC_HANDLER::stream_type stream_type

Public Member Functions

 ACE_Reactive_Strategy (int flags=0)
 "Do-nothing constructor"
 ACE_Reactive_Strategy (ACE_Reactor *reactor, ACE_Reactor_Mask=ACE_Event_Handler::READ_MASK, int flags=0)
 Initialize the strategy.
virtual int open (ACE_Reactor *reactor, ACE_Reactor_Mask=ACE_Event_Handler::READ_MASK, int flags=0)
 Initialize the strategy.
virtual ~ACE_Reactive_Strategy ()
 Destructor.
virtual int activate_svc_handler (SVC_HANDLER *svc_handler, void *arg=0)
void dump () const
 Dump the state of an object.
Public Member Functions inherited from ACE_Concurrency_Strategy< SVC_HANDLER >
 ACE_Concurrency_Strategy (int flags=0)
 Constructor.
virtual ~ACE_Concurrency_Strategy ()
void dump () const
 Dump the state of an object.

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
Public Attributes inherited from ACE_Concurrency_Strategy< SVC_HANDLER >
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.

Protected Types

typedef ACE_Concurrency_Strategy< SVC_HANDLER > inherited

Protected Attributes

ACE_Reactorreactor_
 Pointer to the Reactor we'll use to register the SVC_HANDLER.
ACE_Reactor_Mask mask_
Protected Attributes inherited from ACE_Concurrency_Strategy< SVC_HANDLER >
int flags_

Detailed Description

template<class SVC_HANDLER>
class ACE_Reactive_Strategy< SVC_HANDLER >

Defines the interface for specifying a reactive concurrency strategy for a SVC_HANDLER, where all upcalls to handle_*() methods run in the reactor's thread of control.

This class provides a strategy that registers the SVC_HANDLER with a <Reactor>.

Member Typedef Documentation

◆ base_type

template<class SVC_HANDLER>
typedef ACE_Concurrency_Strategy<SVC_HANDLER> ACE_Reactive_Strategy< SVC_HANDLER >::base_type

◆ inherited

template<class SVC_HANDLER>
typedef ACE_Concurrency_Strategy<SVC_HANDLER> ACE_Reactive_Strategy< SVC_HANDLER >::inherited
protected

Constructor & Destructor Documentation

◆ ACE_Reactive_Strategy() [1/2]

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

"Do-nothing constructor"

◆ ACE_Reactive_Strategy() [2/2]

template<class SVC_HANDLER>
ACE_Reactive_Strategy< SVC_HANDLER >::ACE_Reactive_Strategy ( ACE_Reactor * reactor,
ACE_Reactor_Mask mask = ACE_Event_Handler::READ_MASK,
int flags = 0 )
inline

Initialize the strategy.

◆ ~ACE_Reactive_Strategy()

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

Destructor.

Member Function Documentation

◆ activate_svc_handler()

template<class SVC_HANDLER>
int ACE_Reactive_Strategy< SVC_HANDLER >::activate_svc_handler ( SVC_HANDLER * svc_handler,
void * arg = 0 )
virtual

Activate the svc_handler by registering it with the <Reactor> and then calling it's <open> hook.

Reimplemented from ACE_Concurrency_Strategy< SVC_HANDLER >.

◆ dump()

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

Dump the state of an object.

◆ open()

template<class SVC_HANDLER>
int ACE_Reactive_Strategy< SVC_HANDLER >::open ( ACE_Reactor * reactor,
ACE_Reactor_Mask mask = ACE_Event_Handler::READ_MASK,
int flags = 0 )
virtual

Initialize the strategy.

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

template<class SVC_HANDLER>
ACE_Reactive_Strategy< SVC_HANDLER >::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

◆ mask_

template<class SVC_HANDLER>
ACE_Reactor_Mask ACE_Reactive_Strategy< SVC_HANDLER >::mask_
protected

The mask that we pass to the <Reactor> when we register the SVC_HANDLER.

◆ reactor_

template<class SVC_HANDLER>
ACE_Reactor* ACE_Reactive_Strategy< SVC_HANDLER >::reactor_
protected

Pointer to the Reactor we'll use to register the SVC_HANDLER.


The documentation for this class was generated from the following files: