Geant4 11.3.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PTL::internal Namespace Reference

Functions

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

Function Documentation

◆ get_default_threadpool()

ThreadPool * PTL::internal::get_default_threadpool ( )

Definition at line 50 of file TaskGroup.cc.

51{
53 if(mrm)
54 {
55 if(!mrm->GetThreadPool())
56 mrm->Initialize();
57 return mrm->GetThreadPool();
58 }
59 return nullptr;
60}
static TaskRunManager * GetMasterRunManager(bool useTBB=false)

Referenced by PTL::TaskGroup< Tp, Arg, MaxDepth >::TaskGroup(), PTL::TaskGroup< Tp, Arg, MaxDepth >::TaskGroup(), and PTL::TaskGroup< Tp, Arg, MaxDepth >::wait().

◆ get_task_depth()

intmax_t PTL::internal::get_task_depth ( )

Definition at line 63 of file TaskGroup.cc.

64{
66}
static ThreadData *& GetInstance()
Definition ThreadData.cc:31
intmax_t task_depth

◆ task_group_counter()

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

Definition at line 43 of file TaskGroup.cc.

44{
45 static std::atomic_uintmax_t _instance(0);
46 return _instance;
47}