Import Geant4 11.1.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2022-07-01 10:44:02 +02:00
parent b3bf75a2a1
commit c07cea1fe0
2172 changed files with 183300 additions and 123938 deletions
+18 -8
View File
@@ -125,18 +125,16 @@ TypeMutex(const unsigned int& _n = 0)
//======================================================================================//
// global thread types
typedef std::thread Thread;
typedef std::thread::native_handle_type NativeThread;
using Thread = std::thread;
using NativeThread = std::thread::native_handle_type;
// std::thread::id does not cast to integer
typedef std::thread::id Pid_t;
using Pid_t = std::thread::id;
// Condition
typedef std::condition_variable Condition;
//
using Condition = std::condition_variable;
// Thread identifier
typedef Thread::id ThreadId;
using ThreadId = Thread::id;
//======================================================================================//
@@ -153,6 +151,9 @@ enum
Pid_t
GetPidId();
unsigned
GetNumberOfPhysicalCpus();
unsigned
GetNumberOfCores();
@@ -163,7 +164,16 @@ void
SetThreadId(int aNewValue);
bool
SetPinAffinity(int idx, NativeThread& at);
SetPinAffinity(int idx);
bool
SetThreadPriority(int _v);
bool
SetPinAffinity(int idx, NativeThread& _t);
bool
SetThreadPriority(int _v, NativeThread& _t);
} // namespace Threading
} // namespace PTL