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;
67 tbb::task_scheduler_init *
fSched =
nullptr;
TPoolManager(UInt_t nThreads=0)
Initializes the scheduler within ROOT.
friend std::shared_ptr< TPoolManager > GetPoolManager(UInt_t nThreads)
Get a shared pointer to the manager.
tbb::task_scheduler_init * fSched
~TPoolManager()
Terminates the scheduler instantiated within ROOT.
static UInt_t GetPoolSize()
Returns the number of threads running when the scheduler has been instantiated within ROOT.
std::shared_ptr< TPoolManager > GetPoolManager(UInt_t nThreads=0)
Get a shared pointer to the manager.
Namespace for new ROOT classes and functions.