More marshalling simplification
[invirt/third/libt4.git] / rpc / thr_pool.h
index 4ea1bd4..5b95cba 100644 (file)
@@ -1,12 +1,10 @@
 #ifndef thr_pool_h
 #define thr_pool_h
 
 #ifndef thr_pool_h
 #define thr_pool_h
 
-#include <vector>
-#include <thread>
-
+#include "types.h"
 #include "fifo.h"
 
 #include "fifo.h"
 
-typedef std::function<void()> job_t;
+typedef function<void()> job_t;
 
 class ThrPool {
        public:
 
 class ThrPool {
        public:
@@ -20,7 +18,7 @@ class ThrPool {
                bool blockadd_;
 
                fifo<job_t> jobq_;
                bool blockadd_;
 
                fifo<job_t> jobq_;
-               std::vector<std::thread> th_;
+               vector<thread> th_;
 
         void do_worker();
 };
 
         void do_worker();
 };