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_Schedule_All_Reactive_Strategy< SVC_HANDLER >::ACE_Schedule_All_Reactive_Strategy ( SVC_HANDLER *  scheduler = 0  )  [inline]

Constructor.

Definition at line 160 of file Strategies_T.inl.

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 [inline, virtual]

Dump the state of the object.

Reimplemented from ACE_Scheduling_Strategy< SVC_HANDLER >.

Definition at line 1400 of file Strategies_T.cpp.

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

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

Resume hook.

Reimplemented from ACE_Scheduling_Strategy< SVC_HANDLER >.

Definition at line 1393 of file Strategies_T.cpp.

01394 {
01395   ACE_TRACE ("ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::resume");
01396   return this->reactor_->resume_handlers ();
01397 }

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

Suspend hook.

Reimplemented from ACE_Scheduling_Strategy< SVC_HANDLER >.

Definition at line 1386 of file Strategies_T.cpp.

01387 {
01388   ACE_TRACE ("ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::suspend");
01389   return this->reactor_->suspend_handlers ();
01390 }


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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Fri Nov 6 23:25:55 2009 for ACE by  doxygen 1.6.1