40TaskRunManager::GetPrivateMasterRunManager(
bool init,
bool useTBB)
66: m_workers(
std::thread::hardware_concurrency())
73#if defined(PTL_USE_TBB)
74 auto _useTBB = GetEnv<bool>(
"PTL_FORCE_TBB", GetEnv<bool>(
"FORCE_TBB", useTBB));
95 std::cout <<
"TaskRunManager :: Creating thread pool..." << std::endl;
98 std::cout <<
"TaskRunManager :: Creating task manager..." << std::endl;
106 std::cout <<
"TaskRunManager :: Resizing thread pool from "
117 std::cout <<
"TaskRunManager :: Using TBB..." << std::endl;
122 std::cout <<
"TaskRunManager :: Using ThreadPool..." << std::endl;
127 std::cout <<
"TaskRunManager :: initialized..." << std::endl;
TaskManager * m_task_manager
static TaskRunManager * GetMasterRunManager(bool useTBB=false)
virtual void Initialize(uint64_t n=std::thread::hardware_concurrency())
ThreadPool * m_thread_pool
TaskRunManager(bool useTBB=false)
static pointer & GetPrivateMasterRunManager(bool init, bool useTBB=false)
VUserTaskQueue * m_task_queue
static TaskRunManager * GetInstance(bool useTBB=false)
void resize(size_type _n)
static void set_use_tbb(bool val)
size_type destroy_threadpool()