ACE_Schedule_All_Reactive_Strategy< SVC_HANDLER > 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< SVC_HANDLER >:

Inheritance graph
[legend]
Collaboration diagram for ACE_Schedule_All_Reactive_Strategy< SVC_HANDLER >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_Scheduling_Strategy<
SVC_HANDLER > 
base_type

Public Member Functions

 ACE_Schedule_All_Reactive_Strategy (SVC_HANDLER *=0)
 Constructor.

virtual int suspend (void)
 Suspend hook.

virtual int resume (void)
 Resume hook.

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


Protected Attributes

ACE_Reactorreactor_
 Reactor.


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 670 of file Strategies_T.h.


Member Typedef Documentation

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

Definition at line 676 of file Strategies_T.h.


Constructor & Destructor Documentation

template<class SVC_HANDLER>
ACE_INLINE ACE_Schedule_All_Reactive_Strategy< SVC_HANDLER >::ACE_Schedule_All_Reactive_Strategy SVC_HANDLER *  = 0  ) 
 

Constructor.

Definition at line 160 of file Strategies_T.inl.

References ACE_TRACE, and ACE_Reactor::instance().

00161   : ACE_Scheduling_Strategy<SVC_HANDLER> (scheduler)
00162 {
00163   ACE_TRACE ("ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::ACE_Schedule_All_Reactive_Strategy");
00164 
00165   if (scheduler == 0 || scheduler->reactor () == 0)
00166     this->reactor_ = ACE_Reactor::instance ();
00167   else
00168     this->reactor_ = scheduler->reactor ();
00169 }


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

Definition at line 1397 of file Strategies_T.cpp.

References ACE_TRACE, and ACE_Scheduling_Strategy< SVC_HANDLER >::dump().

01398 {
01399 #if defined (ACE_HAS_DUMP)
01400   ACE_TRACE ("ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::dump");
01401 
01402   ACE_Scheduling_Strategy<SVC_HANDLER>::dump ();
01403 #endif /* ACE_HAS_DUMP */
01404 }

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

Resume hook.

Reimplemented from ACE_Scheduling_Strategy< SVC_HANDLER >.

Definition at line 1390 of file Strategies_T.cpp.

References ACE_TRACE, and ACE_Reactor::resume_handlers().

01391 {
01392   ACE_TRACE ("ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::resume");
01393   return this->reactor_->resume_handlers ();
01394 }

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

Suspend hook.

Reimplemented from ACE_Scheduling_Strategy< SVC_HANDLER >.

Definition at line 1383 of file Strategies_T.cpp.

References ACE_TRACE, and ACE_Reactor::suspend_handlers().

01384 {
01385   ACE_TRACE ("ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::suspend");
01386   return this->reactor_->suspend_handlers ();
01387 }


Member Data Documentation

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

Reactor.

Definition at line 696 of file Strategies_T.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:28:29 2006 for ACE by doxygen 1.3.6