#include <Strategies_T.h>
Inheritance diagram for ACE_Schedule_All_Threaded_Strategy:


Public Types | |
| typedef ACE_Scheduling_Strategy< SVC_HANDLER > | base_type |
Public Methods | |
| ACE_Schedule_All_Threaded_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_Thread_Manager * | thr_mgr_ |
| Thread Manager. More... | |
This class provides a strategy that suspends and resumes all the Event_Handlers controlled by a Thread_Manager in one fell swoop.
Definition at line 705 of file Strategies_T.h.
|
|||||
|
Definition at line 711 of file Strategies_T.h. |
|
||||||||||
|
Constructor.
Definition at line 323 of file Strategies_T.i. References ACE_TRACE, and ACE_Thread_Manager::instance.
00324 : ACE_Scheduling_Strategy<SVC_HANDLER> (scheduler) 00325 { 00326 ACE_TRACE ("ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::ACE_Schedule_All_Threaded_Strategy"); 00327 00328 if (scheduler == 0 || scheduler->thr_mgr () == 0) 00329 this->thr_mgr_ = ACE_Thread_Manager::instance (); 00330 else 00331 this->thr_mgr_ = scheduler->thr_mgr (); 00332 } |
|
||||||||||
|
Dump the state of the object.
Reimplemented from ACE_Scheduling_Strategy. Definition at line 1202 of file Strategies_T.cpp. References ACE_TRACE, and ACE_Scheduling_Strategy::dump.
01203 {
01204 ACE_TRACE ("ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::dump");
01205
01206 ACE_Scheduling_Strategy<SVC_HANDLER>::dump ();
01207 }
|
|
||||||||||
|
Resume hook.
Reimplemented from ACE_Scheduling_Strategy. Definition at line 342 of file Strategies_T.i. References ACE_TRACE, ACE_Thread_Manager::resume_all, and thr_mgr_.
00343 {
00344 ACE_TRACE ("ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::resume");
00345 return this->thr_mgr_->resume_all ();
00346 }
|
|
||||||||||
|
Suspend hook.
Reimplemented from ACE_Scheduling_Strategy. Definition at line 335 of file Strategies_T.i. References ACE_TRACE, ACE_Thread_Manager::suspend_all, and thr_mgr_.
00336 {
00337 ACE_TRACE ("ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::suspend");
00338 return this->thr_mgr_->suspend_all ();
00339 }
|
|
|||||
|
Thread Manager.
Definition at line 731 of file Strategies_T.h. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002