Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4Threading Namespace Reference

Enumerations

enum  { SEQUENTIAL_ID = -2 , MASTER_ID = -1 , WORKER_ID = 0 , GENERICTHREAD_ID = -1000 }
 

Functions

G4Pid_t G4GetPidId ()
 
G4int G4GetNumberOfCores ()
 
G4int G4GetThreadId ()
 
G4bool IsWorkerThread ()
 
G4bool IsMasterThread ()
 
void G4SetThreadId (G4int aNewValue)
 
G4bool G4SetPinAffinity (G4int idx, G4NativeThread &at)
 
void SetMultithreadedApplication (G4bool value)
 
G4bool IsMultithreadedApplication ()
 
G4int WorkerThreadLeavesPool ()
 
G4int WorkerThreadJoinsPool ()
 
G4int GetNumberOfRunningWorkerThreads ()
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SEQUENTIAL_ID 
MASTER_ID 
WORKER_ID 
GENERICTHREAD_ID 

Definition at line 276 of file G4Threading.hh.

277 {
278 SEQUENTIAL_ID = -2,
279 MASTER_ID = -1,
280 WORKER_ID = 0,
281 GENERICTHREAD_ID = -1000
282 };

Function Documentation

◆ G4GetNumberOfCores()

G4int G4Threading::G4GetNumberOfCores ( )

◆ G4GetPidId()

G4Pid_t G4Threading::G4GetPidId ( )

Definition at line 111 of file G4Threading.cc.

112{
113 // In sequential mode return Process ID and not Thread ID
114# if defined(WIN32)
115 return GetCurrentProcessId();
116# else
117 return getpid();
118# endif
119}

◆ G4GetThreadId()

◆ G4SetPinAffinity()

G4bool G4Threading::G4SetPinAffinity ( G4int idx,
G4NativeThread & at )

Definition at line 127 of file G4Threading.cc.

127{ return true; }

Referenced by G4WorkerThread::SetPinAffinity().

◆ G4SetThreadId()

void G4Threading::G4SetThreadId ( G4int aNewValue)

◆ GetNumberOfRunningWorkerThreads()

G4int G4Threading::GetNumberOfRunningWorkerThreads ( )

Definition at line 133 of file G4Threading.cc.

133{ return 0; }

◆ IsMasterThread()

G4bool G4Threading::IsMasterThread ( )

Definition at line 124 of file G4Threading.cc.

124{ return true; }

Referenced by G4NuclideTable::AddState(), G4NuclideTable::AddState(), G4NuclideTable::AddState(), G4Colour::AddToMap(), G4LogicalVolume::AssignFieldManager(), G4NeutronHPCapture::BuildPhysicsTable(), G4ParticleHPElastic::BuildPhysicsTable(), G4ParticleHPFission::BuildPhysicsTable(), G4ParticleHPThermalScatteringData::BuildPhysicsTable(), G4RadioactiveDecay::BuildPhysicsTable(), G4UnitDefinition::ClearUnitsTable(), G4GeometryManager::CloseGeometry(), G4VUserPhysicsList::Construct(), G4HadronInelasticQBBC::ConstructProcess(), G4HadronInelasticQBBC_ABLA::ConstructProcess(), G4HadronPhysicsFTFP_BERT::ConstructProcess(), G4HadronPhysicsFTFP_BERT_ATL::ConstructProcess(), G4HadronPhysicsFTFQGSP_BERT::ConstructProcess(), G4HadronPhysicsINCLXX::ConstructProcess(), G4HadronPhysicsNuBeam::ConstructProcess(), G4HadronPhysicsQGSP_BERT::ConstructProcess(), G4HadronPhysicsQGSP_BIC::ConstructProcess(), G4HadronPhysicsShielding::ConstructProcess(), G4NeutronTrackingCut::ConstructProcess(), G4RunManagerKernel::DefineWorldVolume(), G4UIcommand::DoIt(), G4DeexPrecoParameters::Dump(), G4Qt3DViewer::FinishView(), G4CascadeInterface::G4CascadeInterface(), G4ParticleHPInelasticData::G4ParticleHPInelasticData(), G4RootNtupleFileManager::G4RootNtupleFileManager(), G4RunManagerKernel::G4RunManagerKernel(), G4ScoringProbe::G4ScoringProbe(), G4UnitDefinition::G4UnitDefinition(), G4Analysis::GetNtupleFileName(), G4ToolsSGSceneHandler::GetOrCreateNode(), G4Analysis::GetTnFileName(), G4UnitDefinition::GetUnitsTable(), G4RunManager::InitializeGeometry(), G4RunManagerKernel::InitializePhysics(), G4DNAChemistryManager::InitializeThreadSharedData(), G4ITTrackHolder::Instance(), G4DNAMaterialManager::IsLocked(), G4GeometryManager::OpenGeometry(), G4XrayReflection::ProcessDescription(), G4UIQt::ReceiveG4cerr(), G4UIQt::ReceiveG4cout(), G4UIQt::ReceiveG4debug(), G4RunManager::ReinitializeGeometry(), G4RunManagerKernel::RunInitialization(), G4ExcitationHandler::SetDeexChannelsType(), G4ScoringProbe::SetMaterial(), G4NuclideTable::SetMeanLifeThreshold(), G4HadronicParameters::SetNeutronKineticEnergyThresholdForSVT(), G4LogicalVolume::SetSensitiveDetector(), G4NuclideTable::SetThresholdOfHalfLife(), G4HadronicParameters::SetTimeThresholdForRadioactiveDecay(), G4ScoringProbe::SetupGeometry(), G4OpenGLXViewer::SetView(), G4Qt3DViewer::ShowView(), G4RunManagerKernel::WorkerDefineWorldVolume(), and G4ParticleHPFission::~G4ParticleHPFission().

◆ IsMultithreadedApplication()

◆ IsWorkerThread()

G4bool G4Threading::IsWorkerThread ( )

Definition at line 123 of file G4Threading.cc.

123{ return false; }

Referenced by G4VisManager::BeginDraw(), G4VisManager::BeginDraw2D(), G4ParticleHPElasticData::BuildPhysicsTable(), G4ParticleHPFissionData::BuildPhysicsTable(), G4ParticleHPInelasticData::BuildPhysicsTable(), G4IonTable::CreateIon(), G4VisManager::Draw(), G4VisManager::Draw(), G4VisManager::Draw(), G4VisManager::Draw(), G4VisManager::Draw(), G4VisManager::Draw(), G4RunManagerKernel::DumpRegion(), G4VisManager::EndDraw(), G4VisManager::EndDraw2D(), G4ParticleTable::FindParticle(), G4ParticleTable::FindParticle(), G4NeutronGeneralProcess::G4NeutronGeneralProcess(), G4ParticleHPElasticData::G4ParticleHPElasticData(), G4ParticleHPFissionData::G4ParticleHPFissionData(), G4RootAnalysisReader::G4RootAnalysisReader(), G4ToolsAnalysisManager::G4ToolsAnalysisManager(), G4VAnalysisManager::G4VAnalysisManager(), G4VScoreHistFiller::G4VScoreHistFiller(), G4VScoreNtupleWriter::G4VScoreNtupleWriter(), G4XmlAnalysisReader::G4XmlAnalysisReader(), G4IonTable::GetIon(), G4IonTable::GetIon(), G4ParticleHPVector::GetMaxY(), G4IonTable::GetMuonicAtom(), G4ParticleHPVector::GetXsec(), G4DNAChemistryManager::Initialize(), G4ParticleTable::Insert(), G4VScoreHistFiller::Instance(), G4VScoreNtupleWriter::Instance(), G4AccumulableManager::Merge(), G4ToolsAnalysisManager::PlotImpl(), G4IonTable::Remove(), G4ParticleTable::Remove(), G4PhysicsTableHelper::SetVerboseLevel(), G4LogicalVolume::SetVisAttributes(), G4LogicalVolume::SetVisAttributes(), G4GenericAnalysisManager::WriteH1(), G4GenericAnalysisManager::WriteH2(), G4GenericAnalysisManager::WriteH3(), G4ToolsAnalysisManager::WriteImpl(), G4GenericAnalysisManager::WriteP1(), G4GenericAnalysisManager::WriteP2(), G4NeutronHPCapture::~G4NeutronHPCapture(), and G4ParticleHPElastic::~G4ParticleHPElastic().

◆ SetMultithreadedApplication()

void G4Threading::SetMultithreadedApplication ( G4bool value)

◆ WorkerThreadJoinsPool()

G4int G4Threading::WorkerThreadJoinsPool ( )

Definition at line 132 of file G4Threading.cc.

132{ return 0; }

Referenced by G4TaskRunManagerKernel::InitializeWorker(), and G4MTRunManagerKernel::StartThread().

◆ WorkerThreadLeavesPool()

G4int G4Threading::WorkerThreadLeavesPool ( )

Definition at line 131 of file G4Threading.cc.

131{ return 0; }

Referenced by G4MTRunManagerKernel::StartThread(), and G4TaskRunManagerKernel::TerminateWorker().