Geant4 10.7.0
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 292 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(), G4Analysis::GetNtupleFileName(), G4Analysis::GetTnFileName(), G4UImanager::RemoveCommand(), G4WorkerRunManager::RunInitialization(), G4WorkerTaskRunManager::RunInitialization(), and G4ParticleDefinition::SetProcessManager().
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(), 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().
G4bool G4Threading::IsMultithreadedApplication | ( | ) |
Definition at line 130 of file G4Threading.cc.
Referenced by G4RootAnalysisManager::CloseFileImpl(), G4RunManagerFactory::GetMasterRunManager(), G4RunManagerFactory::GetMasterRunManagerKernel(), G4RunManagerFactory::GetMTMasterRunManager(), G4DNAChemistryManager::Initialize(), G4ITTrackHolder::Instance(), G4IonTable::PreloadNuclide(), and G4GenericMessenger::Command::SetUnit().
G4bool G4Threading::IsWorkerThread | ( | ) |
Definition at line 123 of file G4Threading.cc.
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().
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().