Geant4-11
|
Enumerations | |
enum | { SEQUENTIAL_ID = -2 , MASTER_ID = -1 , WORKER_ID = 0 , GENERICTHREAD_ID = -1000 } |
Functions | |
unsigned | GetNumberOfCores () |
Pid_t | GetPidId () |
int | GetThreadId () |
bool | SetPinAffinity (int idx, NativeThread &at) |
void | SetThreadId (int aNewValue) |
anonymous enum |
Enumerator | |
---|---|
SEQUENTIAL_ID | |
MASTER_ID | |
WORKER_ID | |
GENERICTHREAD_ID |
Definition at line 145 of file Threading.hh.
unsigned PTL::Threading::GetNumberOfCores | ( | ) |
Definition at line 60 of file Threading.cc.
Referenced by PTL::ThreadPool::execute_on_all_threads(), and PTL::ThreadPool::execute_on_specific_threads().
Pid_t PTL::Threading::GetPidId | ( | ) |
Definition at line 51 of file Threading.cc.
int PTL::Threading::GetThreadId | ( | ) |
Definition at line 74 of file Threading.cc.
References anonymous_namespace{Threading.cc}::ThreadID.
bool PTL::Threading::SetPinAffinity | ( | int | idx, |
NativeThread & | at | ||
) |
Definition at line 82 of file Threading.cc.
References PTL::ConsumeParameters().
Referenced by PTL::ThreadPool::set_affinity(), and G4RunMessenger::SetNewValue().
void PTL::Threading::SetThreadId | ( | int | aNewValue | ) |
Definition at line 68 of file Threading.cc.
References anonymous_namespace{Threading.cc}::ThreadID.
Referenced by PTL::ThreadPool::add_thread_id(), and PTL::ThreadPool::start_thread().