Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Schedule_All_Threaded_Strategy Class Template Reference

Defines the interface for specifying how to suspend and resume a multithreaded service . More...

#include <Strategies_T.h>

Inheritance diagram for ACE_Schedule_All_Threaded_Strategy:

Inheritance graph
[legend]
Collaboration diagram for ACE_Schedule_All_Threaded_Strategy:

Collaboration graph
[legend]
List of all members.

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_Managerthr_mgr_
 Thread Manager. More...


Detailed Description

template<class SVC_HANDLER>
class ACE_Schedule_All_Threaded_Strategy< SVC_HANDLER >

Defines the interface for specifying how to suspend and resume a multithreaded service .

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.


Member Typedef Documentation

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

Definition at line 711 of file Strategies_T.h.


Constructor & Destructor Documentation

template<class SVC_HANDLER>
ASYS_INLINE ACE_Schedule_All_Threaded_Strategy< SVC_HANDLER >::ACE_Schedule_All_Threaded_Strategy SVC_HANDLER *    = 0
 

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 }


Member Function Documentation

template<class SVC_HANDLER>
void ACE_Schedule_All_Threaded_Strategy< SVC_HANDLER >::dump void    const [virtual]
 

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 }

template<class SVC_HANDLER>
ASYS_INLINE int ACE_Schedule_All_Threaded_Strategy< SVC_HANDLER >::resume void    [virtual]
 

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 }

template<class SVC_HANDLER>
ASYS_INLINE int ACE_Schedule_All_Threaded_Strategy< SVC_HANDLER >::suspend void    [virtual]
 

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 }


Member Data Documentation

template<class SVC_HANDLER>
ACE_Thread_Manager* ACE_Schedule_All_Threaded_Strategy::thr_mgr_ [protected]
 

Thread Manager.

Definition at line 731 of file Strategies_T.h.

Referenced by resume, and suspend.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:55:34 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002