casa
$Rev:20696$
|
#include <ThreadCoordinator.h>
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 |
Definition at line 120 of file ThreadCoordinator.h.
casa::ThreadCoordinator< T >::ThreadCoordinator | ( | Int | nThreads, |
Bool | logStates = False |
||
) | [inline] |
Definition at line 124 of file ThreadCoordinator.h.
void casa::ThreadCoordinator< T >::getToWork | ( | T * | workInfo | ) | [inline] |
Definition at line 135 of file ThreadCoordinator.h.
void casa::ThreadCoordinator< T >::giveWorkToWorkers | ( | T * | workInfo | ) | [inline] |
Definition at line 127 of file ThreadCoordinator.h.
void casa::ThreadCoordinator< T >::installWorkInfo | ( | ) | [inline, protected, virtual] |
Implements casa::ThreadCoordinatorBase.
Definition at line 155 of file ThreadCoordinator.h.
Int casa::ThreadCoordinator< T >::nThreads | ( | ) | [inline] |
Definition at line 151 of file ThreadCoordinator.h.
void casa::ThreadCoordinator< T >::setNThreads | ( | Int | n | ) | [inline] |
Definition at line 150 of file ThreadCoordinator.h.
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().
T* casa::ThreadCoordinator< T >::workInfo_p [private] |
Definition at line 165 of file ThreadCoordinator.h.
Referenced by casa::ThreadCoordinator< Int >::installWorkInfo(), and casa::ThreadCoordinator< Int >::waitForWork().
T* casa::ThreadCoordinator< T >::workInfoInWaiting_p [private] |
Definition at line 164 of file ThreadCoordinator.h.
Referenced by casa::ThreadCoordinator< Int >::getToWork(), casa::ThreadCoordinator< Int >::giveWorkToWorkers(), and casa::ThreadCoordinator< Int >::installWorkInfo().