#pragma once #include "thread/threadpool.h" class GlobalThreadPool { public: // will execute slices of "loop" from "lower" to "upper" // in parallel on the global thread pool static void Loop(const function& loop, int lower, int upper); private: static shared_ptr pool; static bool initialized; static void Inititialize(); };