#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 118 of file ThreadCoordinator.h.
| casa::ThreadCoordinator< T >::ThreadCoordinator | ( | Int | nThreads, | |
| Bool | logStates = False | |||
| ) | [inline] |
Definition at line 122 of file ThreadCoordinator.h.
| void casa::ThreadCoordinator< T >::getToWork | ( | T * | workInfo | ) | [inline] |
Definition at line 133 of file ThreadCoordinator.h.
References casa::ThreadCoordinatorBase::getToWork(), and casa::ThreadCoordinator< T >::workInfoInWaiting_p.
| void casa::ThreadCoordinator< T >::giveWorkToWorkers | ( | T * | workInfo | ) | [inline] |
Definition at line 125 of file ThreadCoordinator.h.
References casa::ThreadCoordinatorBase::dispatchWork(), casa::ThreadCoordinatorBase::waitForWorkersToReport(), and casa::ThreadCoordinator< T >::workInfoInWaiting_p.
| void casa::ThreadCoordinator< T >::installWorkInfo | ( | ) | [inline, protected, virtual] |
Implements casa::ThreadCoordinatorBase.
Definition at line 153 of file ThreadCoordinator.h.
References casa::ThreadCoordinator< T >::workInfo_p, and casa::ThreadCoordinator< T >::workInfoInWaiting_p.
| Int casa::ThreadCoordinator< T >::nThreads | ( | ) | [inline] |
Definition at line 149 of file ThreadCoordinator.h.
References casa::ThreadCoordinatorBase::nThreads_p.
| void casa::ThreadCoordinator< T >::setNThreads | ( | Int | n | ) | [inline] |
Definition at line 148 of file ThreadCoordinator.h.
References casa::ThreadCoordinatorBase::nThreads_p.
| T* casa::ThreadCoordinator< T >::waitForWork | ( | const async::Thread * | thisThread | ) | [inline] |
Reimplemented from casa::ThreadCoordinatorBase.
Definition at line 140 of file ThreadCoordinator.h.
References casa::ThreadCoordinator< T >::workInfo_p.
T* casa::ThreadCoordinator< T >::workInfo_p [private] |
Definition at line 163 of file ThreadCoordinator.h.
Referenced by casa::ThreadCoordinator< T >::installWorkInfo(), and casa::ThreadCoordinator< T >::waitForWork().
T* casa::ThreadCoordinator< T >::workInfoInWaiting_p [private] |
Definition at line 162 of file ThreadCoordinator.h.
Referenced by casa::ThreadCoordinator< T >::getToWork(), casa::ThreadCoordinator< T >::giveWorkToWorkers(), and casa::ThreadCoordinator< T >::installWorkInfo().
1.6.1