#include #include #include #include #include "ThreadPool.hpp" #include "Task.hpp" #include "Common.hpp" int main() { TRACE("Main start"); ThreadPool* tp = new ThreadPool(5); tp->startWorkerThreads(); Task* t1 = new Task(); tp->pushTask(t1); sleep(2); tp->stop(); tp->join(); delete tp; TRACE("Main end"); return 0; }