ACE  6.0.6
Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Attributes
ACE_Reactive_Strategy Class 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:
Inheritance graph
[legend]
Collaboration diagram for ACE_Reactive_Strategy:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
ACE_Concurrency_Strategy
< SVC_HANDLER > 
base_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 (void)
 Destructor.
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_Reactorreactor_
 Pointer to the Reactor we'll use to register the SVC_HANDLER.
ACE_Reactor_Mask mask_

Detailed Description

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


Constructor & Destructor Documentation

ACE_Reactive_Strategy::ACE_Reactive_Strategy ( int  flags = 0) [inline]

"Do-nothing constructor"

ACE_Reactive_Strategy::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::~ACE_Reactive_Strategy ( void  ) [virtual]

Destructor.


Member Function Documentation

int ACE_Reactive_Strategy::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 >.

void ACE_Reactive_Strategy::dump ( void  ) const

Dump the state of an object.

Reimplemented from ACE_Concurrency_Strategy< SVC_HANDLER >.

int ACE_Reactive_Strategy::open ( ACE_Reactor reactor,
ACE_Reactor_Mask  mask = ACE_Event_Handler::READ_MASK,
int  flags = 0 
) [virtual]

Initialize the strategy.


Member Data Documentation

Declare the dynamic allocation hooks.

Reimplemented from ACE_Concurrency_Strategy< SVC_HANDLER >.

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

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines