casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Attributes
casa::ThreadCoordinator< T > Class Template Reference

#include <ThreadCoordinator.h>

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

List of all members.

Public Member Functions

 ThreadCoordinator (Int nThreads, Bool logStates=False)
void giveWorkToWorkers (T *workInfo)
void getToWork (T *workInfo)
T * waitForWork (const async::Thread *thisThread)
void setNThreads (Int n)
Int nThreads ()

Protected Member Functions

void installWorkInfo ()

Private Attributes

T * workInfoInWaiting_p
T * workInfo_p

Detailed Description

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

Definition at line 120 of file ThreadCoordinator.h.


Constructor & Destructor Documentation

template<typename T>
casa::ThreadCoordinator< T >::ThreadCoordinator ( Int  nThreads,
Bool  logStates = False 
) [inline]

Definition at line 124 of file ThreadCoordinator.h.


Member Function Documentation

template<typename T>
void casa::ThreadCoordinator< T >::getToWork ( T *  workInfo) [inline]

Definition at line 135 of file ThreadCoordinator.h.

template<typename T>
void casa::ThreadCoordinator< T >::giveWorkToWorkers ( T *  workInfo) [inline]

Definition at line 127 of file ThreadCoordinator.h.

template<typename T>
void casa::ThreadCoordinator< T >::installWorkInfo ( ) [inline, protected, virtual]

Implements casa::ThreadCoordinatorBase.

Definition at line 155 of file ThreadCoordinator.h.

template<typename T>
Int casa::ThreadCoordinator< T >::nThreads ( ) [inline]

Definition at line 151 of file ThreadCoordinator.h.

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

Definition at line 150 of file ThreadCoordinator.h.

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

Reimplemented from casa::ThreadCoordinatorBase.

Definition at line 142 of file ThreadCoordinator.h.

Referenced by casa::ThreadCoordinator< Int >::waitForWork().


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: