Browse Source

Merge #9679: Access WorkQueue::running only within the cs lock

7b2d96b Access WorkQueue::running only within the cs lock. (Matt Corallo)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
a3511628d0
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/httpserver.cpp

2
src/httpserver.cpp

@ -118,7 +118,7 @@ public:
void Run() void Run()
{ {
ThreadCounter count(*this); ThreadCounter count(*this);
while (running) { while (true) {
std::unique_ptr<WorkItem> i; std::unique_ptr<WorkItem> i;
{ {
std::unique_lock<std::mutex> lock(cs); std::unique_lock<std::mutex> lock(cs);

Loading…
Cancel
Save