Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 ()
 
int WorkerThreadLeavesPool ()
 
int WorkerThreadJoinsPool ()
 
G4int GetNumberOfRunningWorkerThreads ()
 

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 143 of file G4Threading.cc.

143 { return 1; }

Here is the caller graph for this function:

G4Pid_t G4Threading::G4GetPidId ( )

Definition at line 134 of file G4Threading.cc.

135 { // In sequential mode return Process ID and not Thread ID
136  #if defined(WIN32)
137  return GetCurrentProcessId();
138  #else
139  return getpid();
140  #endif
141 }
G4int G4Threading::G4GetThreadId ( )

Definition at line 144 of file G4Threading.cc.

Here is the caller graph for this function:

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

Definition at line 149 of file G4Threading.cc.

149 { return true;}

Here is the caller graph for this function:

void G4Threading::G4SetThreadId ( G4int  aNewValue)

Definition at line 147 of file G4Threading.cc.

147 {}

Here is the caller graph for this function:

G4int G4Threading::GetNumberOfRunningWorkerThreads ( )

Definition at line 155 of file G4Threading.cc.

155 { return 0; }
G4bool G4Threading::IsMasterThread ( )

Definition at line 146 of file G4Threading.cc.

146 { return true; }

Here is the caller graph for this function:

G4bool G4Threading::IsMultithreadedApplication ( )

Definition at line 152 of file G4Threading.cc.

152 { return false; }

Here is the caller graph for this function:

G4bool G4Threading::IsWorkerThread ( )

Definition at line 145 of file G4Threading.cc.

145 { return false; }

Here is the caller graph for this function:

void G4Threading::SetMultithreadedApplication ( G4bool  value)

Definition at line 151 of file G4Threading.cc.

151 {}

Here is the caller graph for this function:

int G4Threading::WorkerThreadJoinsPool ( )

Definition at line 154 of file G4Threading.cc.

154 { return 0; }

Here is the caller graph for this function:

int G4Threading::WorkerThreadLeavesPool ( )

Definition at line 153 of file G4Threading.cc.

153 { return 0; }

Here is the caller graph for this function: