You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
392 B

#include <iostream>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#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;
}