Geant4  10.02.p03
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

anonymous enum
Enumerator
SEQUENTIAL_ID 
MASTER_ID 
WORKER_ID 
GENERICTHREAD_ID 

Definition at line 198 of file G4Threading.hh.

Function Documentation

◆ G4GetNumberOfCores()

G4int G4Threading::G4GetNumberOfCores ( )

Definition at line 133 of file G4Threading.cc.

133 { return 1; }
Here is the caller graph for this function:

◆ G4GetPidId()

G4Pid_t G4Threading::G4GetPidId ( )

Definition at line 124 of file G4Threading.cc.

125 { // In sequential mode return Process ID and not Thread ID
126  #if defined(WIN32)
127  return GetCurrentProcessId();
128  #else
129  return getpid();
130  #endif
131 }

◆ G4GetThreadId()

G4int G4Threading::G4GetThreadId ( )

Definition at line 134 of file G4Threading.cc.

Here is the caller graph for this function:

◆ G4SetPinAffinity()

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

Definition at line 139 of file G4Threading.cc.

139 { return true;}
Here is the caller graph for this function:

◆ G4SetThreadId()

void G4Threading::G4SetThreadId ( G4int  aNewValue)

Definition at line 137 of file G4Threading.cc.

137 {}
Here is the caller graph for this function:

◆ IsMasterThread()

G4bool G4Threading::IsMasterThread ( )

Definition at line 136 of file G4Threading.cc.

136 { return true; }
Here is the caller graph for this function:

◆ IsMultithreadedApplication()

G4bool G4Threading::IsMultithreadedApplication ( )

Definition at line 142 of file G4Threading.cc.

142 { return false; }
Here is the caller graph for this function:

◆ IsWorkerThread()

G4bool G4Threading::IsWorkerThread ( )

Definition at line 135 of file G4Threading.cc.

135 { return false; }

◆ SetMultithreadedApplication()

void G4Threading::SetMultithreadedApplication ( G4bool  value)

Definition at line 141 of file G4Threading.cc.

141 {}
Here is the caller graph for this function: