#ifndef DE82057F_5520_4849_8108_E9A31AAC1878 #define DE82057F_5520_4849_8108_E9A31AAC1878 /* ******************************************************************************* * INCLUDE ******************************************************************************* */ #include #include #include namespace Util { /* ******************************************************************************* * CLASS DECLARE ******************************************************************************* */ class ParallelRunner { public: template void run(Func func, Args... args) { Poco::Thread* pThread = new Poco::Thread(); pThread->startFunc([=]() -> void { func(args...); }); _threads.push_back(pThread); } void join(); private: std::vector> _threads; }; } #endif