#include <G4MTBarrier.hh>
Definition at line 128 of file G4MTBarrier.hh.
G4MTBarrier::G4MTBarrier |
( |
| ) |
|
|
inline |
virtual G4MTBarrier::~G4MTBarrier |
( |
| ) |
|
|
inlinevirtual |
G4MTBarrier::G4MTBarrier |
( |
unsigned int |
numThreads | ) |
|
Definition at line 38 of file G4MTBarrier.cc.
39 m_numActiveThreads(numThreads),
46 InitializeCriticalSection( &cs1 );
47 InitializeCriticalSection( &cs2 );
#define G4MUTEX_INITIALIZER
#define G4CONDITION_INITIALIZER
unsigned int G4MTBarrier::GetCounter |
( |
| ) |
|
Definition at line 116 of file G4MTBarrier.cc.
118 const unsigned int result = m_counter;
G4double G4ParticleHPJENDLHEData::G4double result
void G4MTBarrier::ReleaseBarrier |
( |
| ) |
|
Definition at line 97 of file G4MTBarrier.cc.
#define G4CONDITIONBROADCAST(cond)
void G4MTBarrier::ResetCounter |
( |
| ) |
|
void G4MTBarrier::SetActiveThreads |
( |
unsigned int |
val | ) |
|
|
inline |
void G4MTBarrier::ThisWorkerReady |
( |
| ) |
|
Definition at line 51 of file G4MTBarrier.cc.
56 EnterCriticalSection( &cs1 );
66 # ifdef G4MULTITHREADED
69 LeaveCriticalSection(&cs1);
#define G4CONDITIONWAIT(cond, mutex)
#define G4CONDITIONBROADCAST(cond)
void G4MTBarrier::Wait |
( |
| ) |
|
Definition at line 73 of file G4MTBarrier.cc.
80 EnterCriticalSection(&cs2);
83 if ( m_counter == m_numActiveThreads ) {
break; }
87 # ifdef G4MULTITHREADED
90 LeaveCriticalSection(&cs2);
#define G4CONDITIONWAIT(cond, mutex)
void G4MTBarrier::Wait |
( |
unsigned int |
numt | ) |
|
|
inline |
Definition at line 147 of file G4MTBarrier.hh.
void SetActiveThreads(unsigned int val)
void G4MTBarrier::WaitForReadyWorkers |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files: