63 #ifndef SYNTHESIS_THREADCOORDINATOR_H
64 #define SYNTHESIS_THREADCOORDINATOR_H
122 template <
typename T>
void waitForWorkersToFinishTask()
void giveWorkToWorkers(T *workInfo)
volatile casacore::Int nThreadsAtBarrier_p
ThreadCoordinator(casacore::Int nThreads, casacore::Bool logStates=false)
virtual void installWorkInfo()=0
bool waitForWork(const async::Thread *thisThread)
void setNThreads(casacore::Int n)
volatile bool workToBeDone_p
volatile bool workCompleted_p
const VisBuffer * vb_p;
volatile casacore::Bool readyForWork_p
volatile casacore::Int nThreadsDispatched_p
ThreadCoordinatorBase(casacore::Int nThreads, bool logStates)
void logState(const casacore::String &tag) const
bool Bool
Define the standard types used by Casacore.
virtual ~ThreadCoordinatorBase()
T * waitForWork(const async::Thread *thisThread)
String: the storage and methods of handling collections of characters.
async::Condition * stateChanged_p
void getToWork(T *workInfo)
void waitForWorkersToReport()
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.