Geant4  10.02.p02
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, G4Thread &at)
 
void SetMultithreadedApplication (G4bool value)
 
G4bool IsMultithreadedApplication ()
 

Enumeration Type Documentation

anonymous enum
Enumerator
SEQUENTIAL_ID 
MASTER_ID 
WORKER_ID 
GENERICTHREAD_ID 

Definition at line 198 of file G4Threading.hh.

Function Documentation

G4int G4Threading::G4GetNumberOfCores ( )

Definition at line 127 of file G4Threading.cc.

Referenced by G4MTRunManager::G4MTRunManager(), main(), G4RunMessenger::SetNewValue(), and G4WorkerThread::SetPinAffinity().

+ Here is the caller graph for this function:

G4Pid_t G4Threading::G4GetPidId ( )

Definition at line 118 of file G4Threading.cc.

G4bool G4Threading::G4SetPinAffinity ( G4int  idx,
G4Thread at 
)

Definition at line 133 of file G4Threading.cc.

Referenced by G4WorkerThread::SetPinAffinity().

+ Here is the caller graph for this function:

void G4Threading::G4SetThreadId ( G4int  aNewValue)

Definition at line 131 of file G4Threading.cc.

Referenced by tbbTask::execute(), G4UImanager::SetUpForSpecialThread(), and G4MTRunManagerKernel::StartThread().

+ Here is the caller graph for this function:

G4bool G4Threading::IsWorkerThread ( )

Definition at line 129 of file G4Threading.cc.

Referenced by G4VisManager::BeginDraw(), G4VisManager::BeginDraw2D(), G4VisManager::BeginOfRun(), G4ParticleHPFissionData::BuildPhysicsTable(), G4ParticleHPCaptureData::BuildPhysicsTable(), G4ParticleHPElasticData::BuildPhysicsTable(), G4ParticleHPInelasticData::BuildPhysicsTable(), TSRun::ConstructMFD(), G4IonTable::CreateIon(), G4VisManager::Draw(), G4VisManager::DrawT(), G4VisManager::DrawT2D(), G4RunManagerKernel::DumpRegion(), G4VisManager::EndDraw(), G4VisManager::EndDraw2D(), G4VisManager::EndOfRun(), G4ParticleTable::FindParticle(), G4LossTableManager::G4LossTableManager(), G4NistManager::G4NistManager(), G4ParticleHPCaptureData::G4ParticleHPCaptureData(), G4ParticleHPElasticData::G4ParticleHPElasticData(), G4ParticleHPFissionData::G4ParticleHPFissionData(), G4Pow::G4Pow(), G4UIcommand::G4UIcommandCommonConstructorCode(), G4IonTable::GetIon(), G4ParticleHPVector::GetXsec(), G4DNAChemistryManager::Initialize(), G4ParticleTable::Insert(), G4ParameterManager::Instance(), G4XmlAnalysisManager::Instance(), G4CsvAnalysisManager::Instance(), G4RootAnalysisManager::Instance(), G4RootAnalysisReader::Instance(), G4CsvAnalysisReader::Instance(), G4XmlAnalysisReader::Instance(), G4ParameterManager::Merge(), G4ToolsAnalysisManager::PlotImpl(), G4PhysicsModelCatalog::Register(), G4ParticleTable::Remove(), G4IonTable::Remove(), G4XmlAnalysisManager::WriteH1(), G4CsvAnalysisManager::WriteH1(), G4RootAnalysisManager::WriteH1(), G4XmlAnalysisManager::WriteH2(), G4CsvAnalysisManager::WriteH2(), G4RootAnalysisManager::WriteH2(), G4XmlAnalysisManager::WriteH3(), G4CsvAnalysisManager::WriteH3(), G4RootAnalysisManager::WriteH3(), G4XmlAnalysisManager::WriteP1(), G4CsvAnalysisManager::WriteP1(), G4RootAnalysisManager::WriteP1(), G4XmlAnalysisManager::WriteP2(), G4CsvAnalysisManager::WriteP2(), G4RootAnalysisManager::WriteP2(), and TSRun::~TSRun().

void G4Threading::SetMultithreadedApplication ( G4bool  value)

Definition at line 135 of file G4Threading.cc.

Referenced by G4MTRunManagerKernel::G4MTRunManagerKernel().

+ Here is the caller graph for this function: