#include <Strategies_T.h>
Inheritance diagram for ACE_Schedule_All_Threaded_Strategy< SVC_HANDLER >:
Public Types | |
typedef ACE_Scheduling_Strategy< SVC_HANDLER > | base_type |
Public Member Functions | |
ACE_Schedule_All_Threaded_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_Thread_Manager * | thr_mgr_ |
Thread Manager. |
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 709 of file Strategies_T.h.
|
Definition at line 715 of file Strategies_T.h. |
|
Constructor.
Definition at line 173 of file Strategies_T.inl. References ACE_TRACE, and ACE_Thread_Manager::instance().
00174 : ACE_Scheduling_Strategy<SVC_HANDLER> (scheduler) 00175 { 00176 ACE_TRACE ("ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::ACE_Schedule_All_Threaded_Strategy"); 00177 00178 if (scheduler == 0 || scheduler->thr_mgr () == 0) 00179 this->thr_mgr_ = ACE_Thread_Manager::instance (); 00180 else 00181 this->thr_mgr_ = scheduler->thr_mgr (); 00182 } |
|
Dump the state of the object.
Reimplemented from ACE_Scheduling_Strategy< SVC_HANDLER >. Definition at line 1421 of file Strategies_T.cpp. References ACE_TRACE, and ACE_Scheduling_Strategy< SVC_HANDLER >::dump().
01422 { 01423 #if defined (ACE_HAS_DUMP) 01424 ACE_TRACE ("ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::dump"); 01425 01426 ACE_Scheduling_Strategy<SVC_HANDLER>::dump (); 01427 #endif /* ACE_HAS_DUMP */ 01428 } |
|
Resume hook.
Reimplemented from ACE_Scheduling_Strategy< SVC_HANDLER >. Definition at line 1414 of file Strategies_T.cpp. References ACE_TRACE, and ACE_Thread_Manager::resume_all().
01415 { 01416 ACE_TRACE ("ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::resume"); 01417 return this->thr_mgr_->resume_all (); 01418 } |
|
Suspend hook.
Reimplemented from ACE_Scheduling_Strategy< SVC_HANDLER >. Definition at line 1407 of file Strategies_T.cpp. References ACE_TRACE, and ACE_Thread_Manager::suspend_all().
01408 { 01409 ACE_TRACE ("ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::suspend"); 01410 return this->thr_mgr_->suspend_all (); 01411 } |
|
Thread Manager.
Definition at line 735 of file Strategies_T.h. |