#ifndef thr_pool_h
#define thr_pool_h
-#include <vector>
-#include <thread>
-
+#include "types.h"
#include "fifo.h"
-typedef std::function<void()> job_t;
+typedef function<void()> job_t;
class ThrPool {
public:
bool blockadd_;
fifo<job_t> jobq_;
- std::vector<std::thread> th_;
+ vector<thread> th_;
void do_worker();
};