Browse Source

Merge pull request #6171

bdcf5de Fix intermittent hang issue in scheduler_tests (Wladimir J. van der Laan)
0.13
Wladimir J. van der Laan 10 years ago
parent
commit
4bf83b27b2
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/scheduler.cpp

2
src/scheduler.cpp

@ -29,8 +29,6 @@ void CScheduler::serviceQueue()
{ {
boost::unique_lock<boost::mutex> lock(newTaskMutex); boost::unique_lock<boost::mutex> lock(newTaskMutex);
++nThreadsServicingQueue; ++nThreadsServicingQueue;
stopRequested = false;
stopWhenEmpty = false;
// newTaskMutex is locked throughout this loop EXCEPT // newTaskMutex is locked throughout this loop EXCEPT
// when the thread is waiting or when the user's function // when the thread is waiting or when the user's function

Loading…
Cancel
Save