Public Types | Public Member Functions | Protected Attributes

ACE_Schedule_All_Threaded_Strategy< SVC_HANDLER > 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< SVC_HANDLER >:
Inheritance graph
[legend]
Collaboration diagram for ACE_Schedule_All_Threaded_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_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_Managerthr_mgr_
 Thread Manager.

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 709 of file Strategies_T.h.


Member Typedef Documentation

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

Definition at line 715 of file Strategies_T.h.


Constructor & Destructor Documentation

template<class SVC_HANDLER >
ACE_Schedule_All_Threaded_Strategy< SVC_HANDLER >::ACE_Schedule_All_Threaded_Strategy ( SVC_HANDLER *  scheduler = 0  ) 

Constructor.

Definition at line 173 of file Strategies_T.inl.

  : ACE_Scheduling_Strategy<SVC_HANDLER> (scheduler)
{
  ACE_TRACE ("ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::ACE_Schedule_All_Threaded_Strategy");

  if (scheduler == 0 || scheduler->thr_mgr () == 0)
    this->thr_mgr_ = ACE_Thread_Manager::instance ();
  else
    this->thr_mgr_ = scheduler->thr_mgr ();
}


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< SVC_HANDLER >.

Definition at line 1424 of file Strategies_T.cpp.

{
#if defined (ACE_HAS_DUMP)
  ACE_TRACE ("ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::dump");

  ACE_Scheduling_Strategy<SVC_HANDLER>::dump ();
#endif /* ACE_HAS_DUMP */
}

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

Resume hook.

Reimplemented from ACE_Scheduling_Strategy< SVC_HANDLER >.

Definition at line 1417 of file Strategies_T.cpp.

{
  ACE_TRACE ("ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::resume");
  return this->thr_mgr_->resume_all ();
}

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

Suspend hook.

Reimplemented from ACE_Scheduling_Strategy< SVC_HANDLER >.

Definition at line 1410 of file Strategies_T.cpp.

{
  ACE_TRACE ("ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::suspend");
  return this->thr_mgr_->suspend_all ();
}


Member Data Documentation

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

Thread Manager.

Definition at line 735 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