Geant4-11
Functions
PTL::internal Namespace Reference

Functions

ThreadPoolget_default_threadpool ()
 
intmax_t get_task_depth ()
 
std::atomic_uintmax_t & task_group_counter ()
 

Function Documentation

◆ get_default_threadpool()

ThreadPool * PTL::internal::get_default_threadpool ( )

Definition at line 53 of file TaskGroup.cc.

54{
55 if(TaskRunManager::GetMasterRunManager())
56 return TaskRunManager::GetMasterRunManager()->GetThreadPool();
57 return nullptr;
58}

References PTL::TaskRunManager::GetMasterRunManager(), and PTL::TaskRunManager::GetThreadPool().

◆ get_task_depth()

intmax_t PTL::internal::get_task_depth ( )

Definition at line 61 of file TaskGroup.cc.

62{
63 return (ThreadData::GetInstance()) ? ThreadData::GetInstance()->task_depth : 0;
64}
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)

References PTL::ThreadData::GetInstance(), and PTL::ThreadData::task_depth.

◆ task_group_counter()

std::atomic_uintmax_t & PTL::internal::task_group_counter ( )

Definition at line 46 of file TaskGroup.cc.

47{
48 static std::atomic_uintmax_t _instance(0);
49 return _instance;
50}