Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
G4Threading Namespace Reference

Functions

G4Pid_t G4GetPidId ()
 
G4int G4GetNumberOfCores ()
 
G4int G4GetThreadId ()
 
G4bool IsWorkerThread ()
 
void G4SetThreadId (G4int aNewValue)
 

Function Documentation

G4int G4Threading::G4GetNumberOfCores ( )

Definition at line 102 of file G4Threading.cc.

Referenced by G4MTRunManager::G4MTRunManager(), and main().

102 { return 1; }
G4Pid_t G4Threading::G4GetPidId ( )

Definition at line 93 of file G4Threading.cc.

94 {
95  #if defined(WIN32)
96  return GetCurrentProcessId();
97  #else
98  return getpid();
99  #endif
100 }
G4int G4Threading::G4GetThreadId ( )
void G4Threading::G4SetThreadId ( G4int  aNewValue)

Definition at line 105 of file G4Threading.cc.

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

105 {}
G4bool G4Threading::IsWorkerThread ( )