9 #include "imstkMacros.h" 12 DISABLE_WARNING_PADDING
14 #include <tbb/global_control.h> 19 namespace ParallelUtils
43 static std::unique_ptr<tbb::global_control> s_tbbGlobalControl;
static void setThreadPoolSize(const size_t nThreads)
Set system-wide thread pool size for parallel computation.
static size_t getThreadPoolSize()
Returns the size of the thread pool.
static void setOptimalParallelism()
Set system-wide thread pool size to the optimal value (use all logical cores)