casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
casa::ThreadCoordinator< T > Class Template Reference

#include <ThreadCoordinator.h>

Inheritance diagram for casa::ThreadCoordinator< T >:
casa::ThreadCoordinatorBase

Public Member Functions

 ThreadCoordinator (casacore::Int nThreads, casacore::Bool logStates=false)
 
void giveWorkToWorkers (T *workInfo)
 
void getToWork (T *workInfo)
 
T * waitForWork (const async::Thread *thisThread)
 
void setNThreads (casacore::Int n)
 
casacore::Int nThreads ()
 
- Public Member Functions inherited from casa::ThreadCoordinatorBase
virtual ~ThreadCoordinatorBase ()
 
void waitForWorkersToFinishTask ()
 

Protected Member Functions

void installWorkInfo ()
 
- Protected Member Functions inherited from casa::ThreadCoordinatorBase
 ThreadCoordinatorBase (casacore::Int nThreads, bool logStates)
 
void dispatchWork ()
 
void getToWork ()
 
bool waitForWork (const async::Thread *thisThread)
 
void waitForWorkersToReport ()
 

Private Attributes

T * workInfoInWaiting_p
 
T * workInfo_p
 

Additional Inherited Members

- Protected Attributes inherited from casa::ThreadCoordinatorBase
casacore::Int nThreads_p
 

Detailed Description

template<typename T>
class casa::ThreadCoordinator< T >

Definition at line 123 of file ThreadCoordinator.h.

Constructor & Destructor Documentation

template<typename T >
casa::ThreadCoordinator< T >::ThreadCoordinator ( casacore::Int  nThreads,
casacore::Bool  logStates = false 
)
inline

Definition at line 127 of file ThreadCoordinator.h.

Member Function Documentation

template<typename T >
void casa::ThreadCoordinator< T >::getToWork ( T *  workInfo)
inline
template<typename T >
void casa::ThreadCoordinator< T >::giveWorkToWorkers ( T *  workInfo)
inline
template<typename T >
void casa::ThreadCoordinator< T >::installWorkInfo ( )
inlineprotectedvirtual
template<typename T >
casacore::Int casa::ThreadCoordinator< T >::nThreads ( )
inline

Definition at line 154 of file ThreadCoordinator.h.

References casa::ThreadCoordinatorBase::nThreads_p.

template<typename T >
void casa::ThreadCoordinator< T >::setNThreads ( casacore::Int  n)
inline

Definition at line 153 of file ThreadCoordinator.h.

References casa::ThreadCoordinatorBase::nThreads_p.

template<typename T >
T* casa::ThreadCoordinator< T >::waitForWork ( const async::Thread thisThread)
inline

Member Data Documentation

template<typename T >
T* casa::ThreadCoordinator< T >::workInfo_p
private
template<typename T >
T* casa::ThreadCoordinator< T >::workInfoInWaiting_p
private

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