Geant4 11.1.1
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 | GetNumberOfPhysicalCpus () |
unsigned | GetNumberOfCores () |
int | GetThreadId () |
void | SetThreadId (int aNewValue) |
bool | SetPinAffinity (int idx) |
bool | SetThreadPriority (int _v) |
bool | SetPinAffinity (int idx, NativeThread &_t) |
bool | SetThreadPriority (int _v, NativeThread &_t) |
anonymous enum |
Enumerator | |
---|---|
SEQUENTIAL_ID | |
MASTER_ID | |
WORKER_ID | |
GENERICTHREAD_ID |
Definition at line 84 of file Threading.hh.
unsigned PTL::Threading::GetNumberOfCores | ( | ) |
Definition at line 63 of file Threading.cc.
Referenced by PTL::ThreadPool::execute_on_all_threads(), PTL::ThreadPool::execute_on_specific_threads(), and GetNumberOfPhysicalCpus().
unsigned PTL::Threading::GetNumberOfPhysicalCpus | ( | ) |
Definition at line 71 of file Threading.cc.
Pid_t PTL::Threading::GetPidId | ( | ) |
Definition at line 54 of file Threading.cc.
int PTL::Threading::GetThreadId | ( | ) |
Definition at line 121 of file Threading.cc.
bool PTL::Threading::SetPinAffinity | ( | int | idx | ) |
Definition at line 129 of file Threading.cc.
Referenced by PTL::ThreadPool::set_affinity().
bool PTL::Threading::SetPinAffinity | ( | int | idx, |
NativeThread & | _t | ||
) |
Definition at line 159 of file Threading.cc.
void PTL::Threading::SetThreadId | ( | int | aNewValue | ) |
Definition at line 115 of file Threading.cc.
Referenced by PTL::ThreadPool::add_thread_id(), and PTL::ThreadPool::start_thread().
bool PTL::Threading::SetThreadPriority | ( | int | _v | ) |
Definition at line 146 of file Threading.cc.
Referenced by PTL::ThreadPool::set_priority().
bool PTL::Threading::SetThreadPriority | ( | int | _v, |
NativeThread & | _t | ||
) |
Definition at line 176 of file Threading.cc.