: 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