Geant4
10.03
|
Go to the source code of this file.
Namespaces | |
G4Threading | |
Macros | |
#define | G4THREADSLEEP(tick) { sleep(tick); } |
#define | G4MUTEX_INITIALIZER 1 |
#define | G4MUTEXINIT(mutex) ;; |
#define | G4MUTEXDESTROY(mutex) ;; |
#define | G4MUTEXLOCK fake_mutex_lock_unlock |
#define | G4MUTEXUNLOCK fake_mutex_lock_unlock |
#define | G4THREADCREATE(worker, func, arg) ;; |
#define | G4THREADJOIN(worker) ;; |
#define | G4THREADSELF(nothing) G4Thread(nothing); |
#define | G4CONDITION_INITIALIZER 1 |
#define | G4CONDITIONWAIT(cond, mutex) { ++(*cond); ++(*mutex); } |
#define | G4CONDITIONBROADCAST(cond) { ++(*cond); } |
Typedefs | |
typedef G4int | G4Mutex |
typedef G4int | G4Thread |
typedef void * | G4ThreadFunReturnType |
typedef void * | G4ThreadFunArgType |
typedef G4int(* | thread_lock )(G4Mutex *) |
typedef G4int(* | thread_unlock )(G4Mutex *) |
typedef G4int | G4Pid_t |
typedef G4int | G4Condition |
Enumerations | |
enum | { G4Threading::SEQUENTIAL_ID = -2, G4Threading::MASTER_ID = -1, G4Threading::WORKER_ID = 0, G4Threading::GENERICTHREAD_ID = -1000 } |
#define G4CONDITION_INITIALIZER 1 |
Definition at line 190 of file G4Threading.hh.
#define G4CONDITIONBROADCAST | ( | cond | ) | { ++(*cond); } |
Definition at line 192 of file G4Threading.hh.
Referenced by G4MTBarrier::ReleaseBarrier(), and G4MTBarrier::ThisWorkerReady().
Definition at line 191 of file G4Threading.hh.
Referenced by G4MTBarrier::ThisWorkerReady(), and G4MTBarrier::Wait().
#define G4MUTEX_INITIALIZER 1 |
Definition at line 175 of file G4Threading.hh.
Referenced by TSRun::RecordEvent().
#define G4MUTEXDESTROY | ( | mutex | ) | ;; |
Definition at line 178 of file G4Threading.hh.
Referenced by G4CollisionComposite::~G4CollisionComposite(), G4ElasticHadrNucleusHE::~G4ElasticHadrNucleusHE(), G4GeneralParticleSourceData::~G4GeneralParticleSourceData(), G4SingleParticleSource::~G4SingleParticleSource(), G4SPSAngDistribution::~G4SPSAngDistribution(), G4SPSEneDistribution::~G4SPSEneDistribution(), G4SPSPosDistribution::~G4SPSPosDistribution(), G4SPSRandomGenerator::~G4SPSRandomGenerator(), G4ThreadLocalSingleton< T >::~G4ThreadLocalSingleton(), and G4VDecayChannel::~G4VDecayChannel().
#define G4MUTEXINIT | ( | mutex | ) | ;; |
Definition at line 177 of file G4Threading.hh.
Referenced by G4CollisionComposite::G4CollisionComposite(), G4ElasticHadrNucleusHE::G4ElasticHadrNucleusHE(), G4GeneralParticleSourceData::G4GeneralParticleSourceData(), G4GeomSplitter< T >::G4GeomSplitter(), G4PDefManager::G4PDefManager(), G4SingleParticleSource::G4SingleParticleSource(), G4SPSAngDistribution::G4SPSAngDistribution(), G4SPSEneDistribution::G4SPSEneDistribution(), G4SPSPosDistribution::G4SPSPosDistribution(), G4SPSRandomGenerator::G4SPSRandomGenerator(), G4ThreadLocalSingleton< T >::G4ThreadLocalSingleton(), G4VDecayChannel::G4VDecayChannel(), G4VUPLSplitter< T >::G4VUPLSplitter(), and G4VDecayChannel::operator=().
#define G4MUTEXLOCK fake_mutex_lock_unlock |
Definition at line 179 of file G4Threading.hh.
Referenced by G4VisManager::BeginOfRun(), G4NistMaterialBuilder::BuildNistMaterial(), G4VisManager::EndOfEvent(), G4VisManager::EndOfRun(), G4ParticleTable::FindParticle(), G4NuclearLevelData::G4NuclearLevelData(), G4IonTable::GetIon(), G4IonTable::GetMuonicAtom(), G4NuclearLevelData::InitialiseForIsotope(), G4FermiBreakUpVI::InitialisePool(), G4VUserPhysicsList::InitializeProcessManager(), G4GeneralParticleSourceData::Lock(), G4VUserPhysicsList::RemoveProcessManager(), G4DeexPrecoParameters::SetDefaults(), and G4ParticleTable::WorkerG4ParticleTable().
#define G4MUTEXUNLOCK fake_mutex_lock_unlock |
Definition at line 180 of file G4Threading.hh.
Referenced by G4VisManager::BeginOfRun(), G4NistMaterialBuilder::BuildNistMaterial(), G4VisManager::EndOfEvent(), G4VisManager::EndOfRun(), G4ParticleTable::FindParticle(), G4NuclearLevelData::G4NuclearLevelData(), G4IonTable::GetIon(), G4IonTable::GetMuonicAtom(), G4NuclearLevelData::InitialiseForIsotope(), G4FermiBreakUpVI::InitialisePool(), G4VUserPhysicsList::InitializeProcessManager(), G4VUserPhysicsList::RemoveProcessManager(), G4DeexPrecoParameters::SetDefaults(), G4GeneralParticleSourceData::Unlock(), and G4ParticleTable::WorkerG4ParticleTable().
#define G4THREADCREATE | ( | worker, | |
func, | |||
arg | |||
) | ;; |
Definition at line 181 of file G4Threading.hh.
Referenced by G4VisManager::BeginOfRun(), and main().
#define G4THREADJOIN | ( | worker | ) | ;; |
Definition at line 182 of file G4Threading.hh.
Referenced by G4VisManager::EndOfRun(), and main().
#define G4THREADSELF | ( | nothing | ) | G4Thread(nothing); |
Definition at line 183 of file G4Threading.hh.
Referenced by G4WorkerThread::SetPinAffinity().
#define G4THREADSLEEP | ( | tick | ) | { sleep(tick); } |
Definition at line 49 of file G4Threading.hh.
Referenced by G4VisManager::EndOfEvent().
typedef G4int G4Condition |
Definition at line 189 of file G4Threading.hh.
Definition at line 173 of file G4Threading.hh.
Definition at line 188 of file G4Threading.hh.
Definition at line 174 of file G4Threading.hh.
typedef void* G4ThreadFunArgType |
Definition at line 185 of file G4Threading.hh.
typedef void* G4ThreadFunReturnType |
Definition at line 184 of file G4Threading.hh.
Definition at line 186 of file G4Threading.hh.
Definition at line 187 of file G4Threading.hh.
Definition at line 132 of file G4Threading.cc.