Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
|
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 () |
anonymous enum |
Enumerator | |
---|---|
SEQUENTIAL_ID | |
MASTER_ID | |
WORKER_ID | |
GENERICTHREAD_ID |
Definition at line 276 of file G4Threading.hh.
G4int G4Threading::G4GetNumberOfCores | ( | ) |
Definition at line 121 of file G4Threading.cc.
Referenced by G4MTRunManager::G4MTRunManager(), G4TaskRunManager::G4TaskRunManager(), G4RunMessenger::SetNewValue(), and G4WorkerThread::SetPinAffinity().
G4Pid_t G4Threading::G4GetPidId | ( | ) |
Definition at line 111 of file G4Threading.cc.
G4int G4Threading::G4GetThreadId | ( | ) |
Definition at line 122 of file G4Threading.cc.
Referenced by G4UImanager::AddNewCommand(), G4HadronicProcess::BuildPhysicsTable(), G4OpenGLQtViewer::DrawText(), G4OpenGLImmediateQtViewer::DrawView(), G4BaseFileManager::GetFullFileName(), G4Analysis::GetNtupleFileName(), G4Analysis::GetTnFileName(), G4DNAIndependentReactionTimeModel::PrintInfo(), G4UImanager::RemoveCommand(), G4WorkerRunManager::RunInitialization(), G4WorkerTaskRunManager::RunInitialization(), G4ParticleDefinition::SetProcessManager(), and G4ParticleDefinition::SetTrackingManager().
G4bool G4Threading::G4SetPinAffinity | ( | G4int | idx, |
G4NativeThread & | at ) |
Definition at line 127 of file G4Threading.cc.
Referenced by G4WorkerThread::SetPinAffinity().
void G4Threading::G4SetThreadId | ( | G4int | aNewValue | ) |
Definition at line 125 of file G4Threading.cc.
Referenced by G4TaskRunManagerKernel::InitializeWorker(), G4UImanager::SetUpForSpecialThread(), and G4MTRunManagerKernel::StartThread().
G4int G4Threading::GetNumberOfRunningWorkerThreads | ( | ) |
Definition at line 133 of file G4Threading.cc.
G4bool G4Threading::IsMasterThread | ( | ) |
Definition at line 124 of file G4Threading.cc.
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().
G4bool G4Threading::IsMultithreadedApplication | ( | ) |
Definition at line 130 of file G4Threading.cc.
Referenced by G4RunManagerFactory::GetMasterRunManager(), G4RunManagerFactory::GetMasterRunManagerKernel(), G4RunManagerFactory::GetMTMasterRunManager(), G4DNAChemistryManager::Initialize(), G4ITTrackHolder::Instance(), G4IonTable::PreloadNuclide(), G4DNAIndependentReactionTimeModel::PrintInfo(), and G4GenericMessenger::Command::SetUnit().
G4bool G4Threading::IsWorkerThread | ( | ) |
Definition at line 123 of file G4Threading.cc.
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().
void G4Threading::SetMultithreadedApplication | ( | G4bool | value | ) |
Definition at line 129 of file G4Threading.cc.
Referenced by G4MTRunManagerKernel::G4MTRunManagerKernel(), and G4TaskRunManagerKernel::G4TaskRunManagerKernel().
G4int G4Threading::WorkerThreadJoinsPool | ( | ) |
Definition at line 132 of file G4Threading.cc.
Referenced by G4TaskRunManagerKernel::InitializeWorker(), and G4MTRunManagerKernel::StartThread().
G4int G4Threading::WorkerThreadLeavesPool | ( | ) |
Definition at line 131 of file G4Threading.cc.
Referenced by G4MTRunManagerKernel::StartThread(), and G4TaskRunManagerKernel::TerminateWorker().