Browse Source

Add lock guard to getNumberOfWorkers()

pull/145/head
Simon 8 years ago
parent
commit
a50fd5fdb7
  1. 1
      src/asyncrpcqueue.cpp

1
src/asyncrpcqueue.cpp

@ -183,6 +183,7 @@ void AsyncRPCQueue::addWorker() {
* Return the number of worker threads spawned by the queue
*/
size_t AsyncRPCQueue::getNumberOfWorkers() const {
std::lock_guard<std::mutex> guard(lock_);
return workers_.size();
}

Loading…
Cancel
Save