casa
5.7.0-16
|
#include <ThreadCoordinator.h>
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 |
Definition at line 123 of file ThreadCoordinator.h.
|
inline |
Definition at line 127 of file ThreadCoordinator.h.
|
inline |
Definition at line 138 of file ThreadCoordinator.h.
References casa::ThreadCoordinatorBase::getToWork(), and casa::ThreadCoordinator< T >::workInfoInWaiting_p.
|
inline |
Definition at line 130 of file ThreadCoordinator.h.
References casa::ThreadCoordinatorBase::dispatchWork(), casa::ThreadCoordinatorBase::waitForWorkersToReport(), and casa::ThreadCoordinator< T >::workInfoInWaiting_p.
|
inlineprotectedvirtual |
Implements casa::ThreadCoordinatorBase.
Definition at line 158 of file ThreadCoordinator.h.
References casa::ThreadCoordinator< T >::workInfo_p, and casa::ThreadCoordinator< T >::workInfoInWaiting_p.
|
inline |
Definition at line 154 of file ThreadCoordinator.h.
References casa::ThreadCoordinatorBase::nThreads_p.
|
inline |
Definition at line 153 of file ThreadCoordinator.h.
References casa::ThreadCoordinatorBase::nThreads_p.
|
inline |
Definition at line 145 of file ThreadCoordinator.h.
References casa::ThreadCoordinatorBase::waitForWork(), and casa::ThreadCoordinator< T >::workInfo_p.
|
private |
Definition at line 168 of file ThreadCoordinator.h.
Referenced by casa::ThreadCoordinator< T >::installWorkInfo(), and casa::ThreadCoordinator< T >::waitForWork().
|
private |
Definition at line 167 of file ThreadCoordinator.h.
Referenced by casa::ThreadCoordinator< T >::getToWork(), casa::ThreadCoordinator< T >::giveWorkToWorkers(), and casa::ThreadCoordinator< T >::installWorkInfo().