Classes | Public Member Functions | Private Member Functions | Static Private Attributes | Friends

ACS::ThreadManager Class Reference

#include <acsThreadManager.h>

Inheritance diagram for ACS::ThreadManager:
Inheritance graph
[legend]
Collaboration diagram for ACS::ThreadManager:
Collaboration graph
[legend]

List of all members.

Classes

class  ThreadManagerTSS

Public Member Functions

 ThreadManager ()
 ThreadManager (Logging::Logger::LoggerSmartPtr logger)
template<class T >
T * create (const ACE_CString name)
template<class T >
T * create (const ACE_CString name, const TimeInterval responseTime, const TimeInterval sleepTime)
template<class T >
T * create (const ACE_CString name, const TimeInterval responseTime, const TimeInterval sleepTime, bool del)
template<class T >
T * create (const ACE_CString name, const TimeInterval responseTime, const TimeInterval sleepTime, bool del, const long thrFlags)
template<class T >
T * create (const ACE_CString name, const TimeInterval responseTime, const TimeInterval sleepTime, bool del, const long thrFlags, const size_t stackSize)
template<class T , class P >
T * create (const ACE_CString name, P &)
template<class T , class P >
T * create (const ACE_CString name, P &, const TimeInterval responseTime, const TimeInterval sleepTime)
template<class T , class P >
T * create (const ACE_CString name, P &, const TimeInterval responseTime, const TimeInterval sleepTime, bool del)
template<class T , class P >
T * create (const ACE_CString name, P &, const TimeInterval responseTime, const TimeInterval sleepTime, bool del, const long thrFlags)
template<class T , class P >
T * create (const ACE_CString name, P &, const TimeInterval responseTime, const TimeInterval sleepTime, bool del, const long thrFlags, const size_t stackSize)
void destroy (ACS::Thread *thr)

Private Member Functions

void operator= (const ThreadManager &)
 ThreadManager (const ThreadManager &)

Static Private Attributes

static ACE_TSS< ThreadManagerTSSthreadManagerTSS

Friends

class Thread

Detailed Description

This clas is an extension of ACS::ThreadManagerBase which is used with ACS::Thread


Constructor & Destructor Documentation

ACS::ThreadManager::ThreadManager (  )  [inline]

Thread Manager Constructor

ACS::ThreadManager::ThreadManager ( Logging::Logger::LoggerSmartPtr  logger  )  [inline]

Thread Manager Constructor, that takes logger as parameter. This allows to provide an external, pre-configured, logger in the ThreadManager.

ACS::ThreadManager::ThreadManager ( const ThreadManager  )  [private]

ALMA C++ coding standards state copy constructors should be disabled.


Member Function Documentation

template<class T >
T* ACS::ThreadManager::create ( const ACE_CString  name  ) 

create methods which create a user defined thread object of type T (= derived from ACS::Thread) without a parameter and adds it to the list of Threads.

Exceptions:
acsthreadErrType::ThreadAlreadyExistExImpl 
acsthreadErrType::CanNotCreateThreadExImpl 
template<class T >
T* ACS::ThreadManager::create ( const ACE_CString  name,
const TimeInterval  responseTime,
const TimeInterval  sleepTime 
)
template<class T >
T* ACS::ThreadManager::create ( const ACE_CString  name,
const TimeInterval  responseTime,
const TimeInterval  sleepTime,
bool  del,
const long  thrFlags 
)
template<class T , class P >
T* ACS::ThreadManager::create ( const ACE_CString  name,
P &  ,
const TimeInterval  responseTime,
const TimeInterval  sleepTime,
bool  del,
const long  thrFlags,
const size_t  stackSize 
)
template<class T , class P >
T* ACS::ThreadManager::create ( const ACE_CString  name,
P &  ,
const TimeInterval  responseTime,
const TimeInterval  sleepTime,
bool  del 
)
template<class T , class P >
T* ACS::ThreadManager::create ( const ACE_CString  name,
P &  ,
const TimeInterval  responseTime,
const TimeInterval  sleepTime,
bool  del,
const long  thrFlags 
)
template<class T , class P >
T* ACS::ThreadManager::create ( const ACE_CString  name,
P &  ,
const TimeInterval  responseTime,
const TimeInterval  sleepTime 
)
template<class T , class P >
T* ACS::ThreadManager::create ( const ACE_CString  name,
P &   
)

create methods which create a user defined thread object of type T (= derived from ACS::Thread) with a parameter of type P and add it to the list of Threads.

Exceptions:
acsthreadErrType::ThreadAlreadyExistExImpl 
acsthreadErrType::CanNotCreateThreadExImpl 
template<class T >
T* ACS::ThreadManager::create ( const ACE_CString  name,
const TimeInterval  responseTime,
const TimeInterval  sleepTime,
bool  del,
const long  thrFlags,
const size_t  stackSize 
)
template<class T >
T* ACS::ThreadManager::create ( const ACE_CString  name,
const TimeInterval  responseTime,
const TimeInterval  sleepTime,
bool  del 
)
void ACS::ThreadManager::destroy ( ACS::Thread thr  )  [inline]

destoy method destroys a thread object

Parameters:
the pointer to the thread object
void ACS::ThreadManager::operator= ( const ThreadManager  )  [private]

ALMA C++ coding standards state assignment operators should be disabled.


Friends And Related Function Documentation

friend class Thread [friend]

Member Data Documentation

Thread Manager TSS used for sending thread manager pointer to thread objects


The documentation for this class was generated from the following file: