31TaskRunManager::GetPrivateMasterRunManager()
33 static pointer _instance =
nullptr;
40TaskRunManager::GetPrivateMasterRunManager(
bool init,
bool useTBB)
42 auto& _v = GetPrivateMasterRunManager();
55 auto& _v = GetPrivateMasterRunManager(
true, useTBB);
73 if(!GetPrivateMasterRunManager())
74 GetPrivateMasterRunManager() =
this;
81 if(GetPrivateMasterRunManager() ==
this)
82 GetPrivateMasterRunManager() =
nullptr;
virtual ~TaskRunManager()
TaskManager * m_task_manager
TaskRunManager(bool useTBB=false)
static TaskRunManager * GetMasterRunManager(bool useTBB=false)
virtual void Initialize(uint64_t n=std::thread::hardware_concurrency())
static TaskRunManager * GetInstance(bool useTBB=false)
ThreadPool * m_thread_pool
VUserTaskQueue * m_task_queue
Backports of C++ language features for use with C++11 compilers.
VUserTaskQueue * task_queue