projects
/
invirt/third/libt4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MOAR TEMPLATE MAGIC
[invirt/third/libt4.git]
/
rpc
/
thr_pool.h
diff --git
a/rpc/thr_pool.h
b/rpc/thr_pool.h
index
2a1a749
..
94ce237
100644
(file)
--- a/
rpc/thr_pool.h
+++ b/
rpc/thr_pool.h
@@
-1,22
+1,20
@@
#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"
typedef std::function<void()> job_t;
class ThrPool {
public:
#include "fifo.h"
typedef std::function<void()> job_t;
class ThrPool {
public:
- ThrPool(int sz, bool blocking=true);
+ ThrPool(size_t sz, bool blocking=true);
~ThrPool();
bool addJob(const job_t &j);
private:
~ThrPool();
bool addJob(const job_t &j);
private:
- int nthreads_;
+ size_t nthreads_;
bool blockadd_;
fifo<job_t> jobq_;
bool blockadd_;
fifo<job_t> jobq_;