projects
/
invirt/third/libt4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More cleanups to marshalling logic.
[invirt/third/libt4.git]
/
rpc
/
thr_pool.cc
diff --git
a/rpc/thr_pool.cc
b/rpc/thr_pool.cc
index
146764f
..
73f94f4
100644
(file)
--- a/
rpc/thr_pool.cc
+++ b/
rpc/thr_pool.cc
@@
-9,7
+9,7
@@
ThrPool::ThrPool(int sz, bool blocking)
: nthreads_(sz),blockadd_(blocking),jobq_(100*sz)
{
for (int i=0; i<nthreads_; i++)
: nthreads_(sz),blockadd_(blocking),jobq_(100*sz)
{
for (int i=0; i<nthreads_; i++)
- th_.push_back(std::thread(&ThrPool::do_worker, this));
+ th_.emplace_back(&ThrPool::do_worker, this);
}
// IMPORTANT: this function can be called only when no external thread
}
// IMPORTANT: this function can be called only when no external thread