22 #ifndef ROOT_TPoolManager
23 #define ROOT_TPoolManager
25 #include "RConfigure.h"
31 # if !defined(__ROOTCLING__) && !defined(G__DICTIONARY)
32 # error "Cannot use ROOT::TPoolManager without defining R__USE_IMT."
39 class task_scheduler_init;
55 friend std::shared_ptr<TPoolManager> GetPoolManager(UInt_t nThreads);
57 static UInt_t GetPoolSize();
64 TPoolManager(UInt_t nThreads = 0);
65 static UInt_t fgPoolSize;
66 bool mustDelete =
true;
67 tbb::task_scheduler_init *fSched =
nullptr;
74 std::shared_ptr<TPoolManager> GetPoolManager(UInt_t nThreads = 0);