Defines the interface for specifying how to suspend and resume a single-threaded reactive service . More...
#include <Strategies_T.h>


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_Reactor * | reactor_ |
| Reactor. | |
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.
| typedef ACE_Scheduling_Strategy<SVC_HANDLER> ACE_Schedule_All_Reactive_Strategy< SVC_HANDLER >::base_type |
Definition at line 676 of file Strategies_T.h.
| 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 }
| 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 }
| 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 }
| 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 }
ACE_Reactor* ACE_Schedule_All_Reactive_Strategy< SVC_HANDLER >::reactor_ [protected] |
Reactor.
Definition at line 696 of file Strategies_T.h.
1.6.1