Geant4 11.3.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
Threading.hh File Reference
#include "PTL/Types.hh"

Go to the source code of this file.

Namespaces

namespace  PTL
 Backports of C++ language features for use with C++11 compilers.
 
namespace  PTL::Threading
 

Enumerations

enum  { PTL::Threading::SEQUENTIAL_ID = -2 , PTL::Threading::MASTER_ID = -1 , PTL::Threading::WORKER_ID = 0 , PTL::Threading::GENERICTHREAD_ID = -1000 }
 

Functions

Pid_t PTL::GetPidId ()
 
unsigned PTL::GetNumberOfPhysicalCpus ()
 
unsigned PTL::GetNumberOfCores ()
 
int PTL::GetThreadId ()
 
void PTL::SetThreadId (int aNewValue)
 
bool PTL::SetPinAffinity (int idx)
 
bool PTL::SetThreadPriority (int _v)
 
bool PTL::SetPinAffinity (int idx, NativeThread &_t)
 
bool PTL::SetThreadPriority (int _v, NativeThread &_t)