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

ACE_Schedule_All_Reactive_Strategy Class Template Reference

Defines the interface for specifying how to suspend and resume a single-threaded reactive service . More...

#include <Strategies_T.h>

Inheritance diagram for ACE_Schedule_All_Reactive_Strategy:

Inheritance graph
[legend]
Collaboration diagram for ACE_Schedule_All_Reactive_Strategy:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_Scheduling_Strategy<
SVC_HANDLER > 
base_type

Public Methods

 ACE_Schedule_All_Reactive_Strategy (SVC_HANDLER *=0)
 Constructor. More...

virtual int suspend (void)
 Suspend hook. More...

virtual int resume (void)
 Resume hook. More...

virtual void dump (void) const
 Dump the state of the object. More...


Protected Attributes

ACE_Reactorreactor_
 Reactor. More...


Detailed Description

template<class SVC_HANDLER>
class ACE_Schedule_All_Reactive_Strategy< SVC_HANDLER >

Defines the interface for specifying how to suspend and resume a single-threaded reactive service .

This class provides a strategy that suspends and resumes all the Event_Handlers in a Reactor in one fell swoop.

Definition at line 666 of file Strategies_T.h.


Member Typedef Documentation

template<class SVC_HANDLER>
typedef ACE_Scheduling_Strategy<SVC_HANDLER> ACE_Schedule_All_Reactive_Strategy::base_type
 

Definition at line 672 of file Strategies_T.h.


Constructor & Destructor Documentation

template<class SVC_HANDLER>
ASYS_INLINE ACE_Schedule_All_Reactive_Strategy< SVC_HANDLER >::ACE_Schedule_All_Reactive_Strategy SVC_HANDLER *    = 0
 

Constructor.

Definition at line 296 of file Strategies_T.i.

References ACE_TRACE, and ACE_Reactor::instance.

00297   : ACE_Scheduling_Strategy<SVC_HANDLER> (scheduler)
00298 {
00299   ACE_TRACE ("ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::ACE_Schedule_All_Reactive_Strategy");
00300 
00301   if (scheduler == 0 || scheduler->reactor () == 0)
00302     this->reactor_ = ACE_Reactor::instance ();
00303   else
00304     this->reactor_ = scheduler->reactor ();
00305 }


Member Function Documentation

template<class SVC_HANDLER>
void ACE_Schedule_All_Reactive_Strategy< SVC_HANDLER >::dump void    const [virtual]
 

Dump the state of the object.

Reimplemented from ACE_Scheduling_Strategy.

Definition at line 1194 of file Strategies_T.cpp.

References ACE_TRACE, and ACE_Scheduling_Strategy::dump.

01195 {
01196   ACE_TRACE ("ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::dump");
01197 
01198   ACE_Scheduling_Strategy<SVC_HANDLER>::dump ();
01199 }

template<class SVC_HANDLER>
ASYS_INLINE int ACE_Schedule_All_Reactive_Strategy< SVC_HANDLER >::resume void    [virtual]
 

Resume hook.

Reimplemented from ACE_Scheduling_Strategy.

Definition at line 315 of file Strategies_T.i.

References ACE_TRACE, reactor_, and ACE_Reactor::resume_handlers.

00316 {
00317   ACE_TRACE ("ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::resume");
00318   return this->reactor_->resume_handlers ();
00319 }

template<class SVC_HANDLER>
ASYS_INLINE int ACE_Schedule_All_Reactive_Strategy< SVC_HANDLER >::suspend void    [virtual]
 

Suspend hook.

Reimplemented from ACE_Scheduling_Strategy.

Definition at line 308 of file Strategies_T.i.

References ACE_TRACE, reactor_, and ACE_Reactor::suspend_handlers.

00309 {
00310   ACE_TRACE ("ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::suspend");
00311   return this->reactor_->suspend_handlers ();
00312 }


Member Data Documentation

template<class SVC_HANDLER>
ACE_Reactor* ACE_Schedule_All_Reactive_Strategy::reactor_ [protected]
 

Reactor.

Definition at line 692 of file Strategies_T.h.

Referenced by resume, and suspend.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:55:32 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002