Geant4 10.7.0
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 292 of file G4Threading.hh.

293 {
294 SEQUENTIAL_ID = -2,
295 MASTER_ID = -1,
296 WORKER_ID = 0,
297 GENERICTHREAD_ID = -1000
298 };

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(), G4Colour::AddToMap(), G4LogicalVolume::AssignFieldManager(), G4ParticleHPCapture::BuildPhysicsTable(), G4ParticleHPElastic::BuildPhysicsTable(), G4ParticleHPFission::BuildPhysicsTable(), G4ParticleHPInelastic::BuildPhysicsTable(), G4ParticleHPThermalScatteringData::BuildPhysicsTable(), G4RadioactiveDecay::BuildPhysicsTable(), G4RadioactiveDecayBase::BuildPhysicsTable(), G4UnitDefinition::ClearUnitsTable(), G4NeutronTrackingCut::ConstructProcess(), G4HadronInelasticQBBC::ConstructProcess(), G4HadronPhysicsFTFP_BERT::ConstructProcess(), G4HadronPhysicsFTFP_BERT_ATL::ConstructProcess(), G4HadronPhysicsFTFQGSP_BERT::ConstructProcess(), G4HadronPhysicsINCLXX::ConstructProcess(), G4HadronPhysicsNuBeam::ConstructProcess(), G4HadronPhysicsQGSP_BERT::ConstructProcess(), G4HadronPhysicsQGSP_BIC::ConstructProcess(), G4HadronPhysicsShielding::ConstructProcess(), G4RunManagerKernel::DefineWorldVolume(), G4UIcommand::DoIt(), G4DeexPrecoParameters::Dump(), G4CascadeInterface::G4CascadeInterface(), G4MuonVDNuclearModel::G4MuonVDNuclearModel(), G4ParticleHPInelasticData::G4ParticleHPInelasticData(), G4RootNtupleFileManager::G4RootNtupleFileManager(), G4RunManagerKernel::G4RunManagerKernel(), G4ScoringProbe::G4ScoringProbe(), G4UnitDefinition::G4UnitDefinition(), G4Analysis::GetNtupleFileName(), G4Analysis::GetTnFileName(), G4UnitDefinition::GetUnitsTable(), G4RunManager::InitializeGeometry(), G4RunManagerKernel::InitializePhysics(), G4DNAChemistryManager::InitializeThreadSharedData(), G4ITTrackHolder::Instance(), G4DNAElectronHoleRecombination::IsApplicable(), G4RunManager::ReinitializeGeometry(), G4RunManagerKernel::RunInitialization(), G4ExcitationHandler::SetDeexChannelsType(), G4LogicalVolume::SetSensitiveDetector(), G4NuclideTable::SetThresholdOfHalfLife(), G4ScoringProbe::SetupGeometry(), G4RunManagerKernel::WorkerDefineWorldVolume(), G4FermiBreakUpVI::~G4FermiBreakUpVI(), 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(), G4ParticleHPCaptureData::BuildPhysicsTable(), G4ParticleHPElasticData::BuildPhysicsTable(), G4ParticleHPFissionData::BuildPhysicsTable(), G4ParticleHPInelasticData::BuildPhysicsTable(), G4IonTable::CreateIon(), G4VisManager::Draw(), G4RunManagerKernel::DumpRegion(), G4VisManager::EndDraw(), G4VisManager::EndDraw2D(), G4ParticleTable::FindParticle(), G4ParticleHPCaptureData::G4ParticleHPCaptureData(), G4ParticleHPElasticData::G4ParticleHPElasticData(), G4ParticleHPFissionData::G4ParticleHPFissionData(), G4VScoreHistFiller::G4VScoreHistFiller(), G4VScoreNtupleWriter::G4VScoreNtupleWriter(), G4IonTable::GetIon(), G4IonTable::GetMuonicAtom(), G4ParticleHPVector::GetXsec(), G4DNAChemistryManager::Initialize(), G4ParticleTable::Insert(), G4AccumulableManager::Instance(), G4CsvAnalysisManager::Instance(), G4CsvAnalysisReader::Instance(), G4GenericAnalysisManager::Instance(), G4Hdf5AnalysisManager::Instance(), G4Hdf5AnalysisReader::Instance(), G4RootAnalysisManager::Instance(), G4RootAnalysisReader::Instance(), G4XmlAnalysisManager::Instance(), G4XmlAnalysisReader::Instance(), G4VScoreHistFiller::Instance(), G4VScoreNtupleWriter::Instance(), G4AccumulableManager::Merge(), G4GenericAnalysisManager::Merge(), G4ToolsAnalysisManager::PlotImpl(), G4PhysicsModelCatalog::Register(), G4IonTable::Remove(), G4ParticleTable::Remove(), G4GenericAnalysisManager::WriteH1(), G4GenericAnalysisManager::WriteH2(), G4GenericAnalysisManager::WriteH3(), G4GenericAnalysisManager::WriteImpl(), G4GenericAnalysisManager::WriteP1(), G4GenericAnalysisManager::WriteP2(), G4ParticleHPCapture::~G4ParticleHPCapture(), G4ParticleHPElastic::~G4ParticleHPElastic(), and G4ParticleHPInelastic::~G4ParticleHPInelastic().

◆ 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().