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

#include <ThreadCoordinator.h>

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

List of all members.

Public Member Functions

virtual ~ThreadCoordinatorBase ()
void waitForWorkersToFinishTask ()

Protected Member Functions

 ThreadCoordinatorBase (Int nThreads, bool logStates)
void dispatchWork ()
void getToWork ()
virtual void installWorkInfo ()=0
bool waitForWork (const async::Thread *thisThread)
void waitForWorkersToReport ()

Protected Attributes

Int nThreads_p

Private Member Functions

void logState (const String &tag) const

Private Attributes

boost::barrier * barrier_p
bool logStates_p
async::Mutexmutex_p
volatile Int nThreadsAtBarrier_p
volatile Int nThreadsDispatched_p
volatile Bool readyForWork_p
async::ConditionstateChanged_p
const VisBuffervb_p
volatile bool workCompleted_p
volatile bool workToBeDone_p

Detailed Description

Definition at line 81 of file ThreadCoordinator.h.


Constructor & Destructor Documentation

casa::ThreadCoordinatorBase::ThreadCoordinatorBase ( Int  nThreads,
bool  logStates 
) [protected]

Member Function Documentation

virtual void casa::ThreadCoordinatorBase::installWorkInfo ( ) [protected, pure virtual]
void casa::ThreadCoordinatorBase::logState ( const String tag) const [private]
bool casa::ThreadCoordinatorBase::waitForWork ( const async::Thread thisThread) [protected]

Member Data Documentation

boost::barrier* casa::ThreadCoordinatorBase::barrier_p [private]

Definition at line 104 of file ThreadCoordinator.h.

Definition at line 105 of file ThreadCoordinator.h.

Definition at line 106 of file ThreadCoordinator.h.

Definition at line 107 of file ThreadCoordinator.h.

Definition at line 108 of file ThreadCoordinator.h.

Definition at line 109 of file ThreadCoordinator.h.

Definition at line 110 of file ThreadCoordinator.h.

Definition at line 111 of file ThreadCoordinator.h.

Definition at line 112 of file ThreadCoordinator.h.

Definition at line 113 of file ThreadCoordinator.h.


The documentation for this class was generated from the following file: