ACE_Reactive_Strategy(3)

ACE_Reactive_Strategy3

Defines the interface for specifying a reactive concurrency strategy for a svc_handler.

Usage

#include <ace/ACE_Strategies_T.h>
template<class SVC_HANDLER>
class ACE_Reactive_Strategy : 
  public ACE_Concurrency_Strategy <SVC_HANDLER>
{
  public:
    ACE_Reactive_Strategy (int flags = 0);
    ACE_Reactive_Strategy (
        ACE_Reactor *reactor,
        ACE_Reactor_Mask = ACE_Event_Handler::READ_MASK,
        int flags = 0
        );
    virtual int open (
        ACE_Reactor *reactor,
        ACE_Reactor_Mask = ACE_Event_Handler::READ_MASK,
        int flags = 0
        );
    virtual ~ACE_Reactive_Strategy (void);
    virtual int activate_svc_handler (
        SVC_HANDLER *svc_handler,
        void *arg = 0
        );
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  protected:
    typedef ACE_Concurrency_Strategy<SVC_HANDLER> inherited;
    ACE_Reactor *reactor_;
    ACE_Reactor_Mask mask_;
};

Overview

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

Intialization and termination methods.

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.

Factory method.

virtual int activate_svc_handler (
    SVC_HANDLER *svc_handler,
    void *arg = 0
    );

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

void dump (void) const;

Dump the state of an object.

ACE_ALLOC_HOOK_DECLARE;

Declare the dynamic allocation hooks.

Library

ace

Author

Doug Schmidt

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.