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 | |
Pid_t | GetPidId () |
unsigned | GetNumberOfCores () |
int | GetThreadId () |
bool | IsWorkerThread () |
bool | IsMasterThread () |
void | SetThreadId (int aNewValue) |
bool | SetPinAffinity (int idx, NativeThread &at) |
int | WorkerThreadLeavesPool () |
int | WorkerThreadJoinsPool () |
int | GetNumberOfRunningWorkerThreads () |
anonymous enum |
Enumerator | |
---|---|
SEQUENTIAL_ID | |
MASTER_ID | |
WORKER_ID | |
GENERICTHREAD_ID |
Definition at line 207 of file Threading.hh.
unsigned PTL::Threading::GetNumberOfCores | ( | ) |
Definition at line 64 of file Threading.cc.
Referenced by PTL::ThreadPool::execute_on_all_threads().
int PTL::Threading::GetNumberOfRunningWorkerThreads | ( | ) |
Definition at line 122 of file Threading.cc.
Pid_t PTL::Threading::GetPidId | ( | ) |
Definition at line 55 of file Threading.cc.
int PTL::Threading::GetThreadId | ( | ) |
Definition at line 77 of file Threading.cc.
bool PTL::Threading::IsMasterThread | ( | ) |
Definition at line 87 of file Threading.cc.
bool PTL::Threading::IsWorkerThread | ( | ) |
Definition at line 82 of file Threading.cc.
bool PTL::Threading::SetPinAffinity | ( | int | idx, |
NativeThread & | at | ||
) |
Definition at line 95 of file Threading.cc.
Referenced by PTL::ThreadPool::set_affinity().
void PTL::Threading::SetThreadId | ( | int | aNewValue | ) |
Definition at line 72 of file Threading.cc.
int PTL::Threading::WorkerThreadJoinsPool | ( | ) |
Definition at line 117 of file Threading.cc.
int PTL::Threading::WorkerThreadLeavesPool | ( | ) |
Definition at line 112 of file Threading.cc.