Geant4-11
|
#include <G4WorkerThread.hh>
Public Member Functions | |
G4int | GetNumberThreads () const |
G4int | GetThreadId () const |
void | SetNumberThreads (G4int numnberThreads) |
void | SetPinAffinity (G4int aff) const |
void | SetThreadId (G4int threadId) |
Static Public Member Functions | |
static void | BuildGeometryAndPhysicsVector () |
static void | DestroyGeometryAndPhysicsVector () |
static void | UpdateGeometryAndPhysicsVectorFromMaster () |
Private Attributes | |
G4int | numThreads = 0 |
G4int | threadId = 0 |
Definition at line 43 of file G4WorkerThread.hh.
|
static |
Definition at line 71 of file G4WorkerThread.cc.
References G4TWorkspacePool< T >::CreateAndUseWorkspace(), G4SolidsWorkspace::GetPool(), G4GeometryWorkspace::GetPool(), G4ParticlesWorkspace::GetPool(), and G4PhysicsListWorkspace::GetPool().
Referenced by G4MTRunManagerKernel::StartThread().
|
static |
Definition at line 83 of file G4WorkerThread.cc.
References G4TWorkspacePool< T >::CleanUpAndDestroyAllWorkspaces(), G4SolidsWorkspace::GetPool(), G4GeometryWorkspace::GetPool(), G4ParticlesWorkspace::GetPool(), and G4PhysicsListWorkspace::GetPool().
Referenced by G4MTRunManagerKernel::StartThread(), and G4TaskRunManagerKernel::TerminateWorker().
G4int G4WorkerThread::GetNumberThreads | ( | ) | const |
G4int G4WorkerThread::GetThreadId | ( | ) | const |
Definition at line 53 of file G4WorkerThread.cc.
References threadId.
Referenced by G4WorkerRunManager::rndmSaveThisEvent(), G4WorkerRunManager::rndmSaveThisRun(), SetPinAffinity(), G4MTRunManagerKernel::StartThread(), G4WorkerRunManager::StoreRNGStatus(), G4WorkerTaskRunManager::StoreRNGStatus(), and G4WorkerTaskRunManager::TerminateEventLoop().
void G4WorkerThread::SetNumberThreads | ( | G4int | numnberThreads | ) |
void G4WorkerThread::SetPinAffinity | ( | G4int | aff | ) | const |
Definition at line 211 of file G4WorkerThread.cc.
References G4cout, G4endl, G4Exception(), G4Threading::G4GetNumberOfCores(), G4Threading::G4SetPinAffinity(), GetThreadId(), and JustWarning.
Referenced by G4MTRunManagerKernel::StartThread().
void G4WorkerThread::SetThreadId | ( | G4int | threadId | ) |
|
static |
Definition at line 94 of file G4WorkerThread.cc.
References G4SolidsWorkspace::DestroyWorkspace(), G4GeometryWorkspace::DestroyWorkspace(), G4LogicalVolume::GetFieldManager(), G4LogicalVolumeStore::GetInstance(), G4RegionStore::GetInstance(), G4LogicalVolume::GetMasterFieldManager(), G4LogicalVolume::GetMasterSensitiveDetector(), G4SolidsWorkspace::GetPool(), G4GeometryWorkspace::GetPool(), G4LogicalVolume::GetSensitiveDetector(), G4TWorkspacePool< T >::GetWorkspace(), G4SolidsWorkspace::InitialiseWorkspace(), G4GeometryWorkspace::InitialiseWorkspace(), anonymous_namespace{G4QuasiElRatios.cc}::map, reg, second, G4LogicalVolume::SetFieldManager(), and G4LogicalVolume::SetSensitiveDetector().
Referenced by G4WorkerRunManager::DoWork(), and G4WorkerTaskRunManager::DoWork().
|
private |
Definition at line 64 of file G4WorkerThread.hh.
Referenced by GetNumberThreads(), and SetNumberThreads().
|
private |
Definition at line 63 of file G4WorkerThread.hh.
Referenced by GetThreadId(), and SetThreadId().