aboutsummaryrefslogtreecommitdiff
path: root/src/scheduler.cpp
diff options
context:
space:
mode:
authorCasey Rodarmor <casey@rodarmor.com>2015-09-03 12:53:00 -0400
committerCasey Rodarmor <casey@rodarmor.com>2015-09-03 15:13:40 -0400
commit86270c816411680c33a60adfa768c7a647fce08f (patch)
tree8e8e3f427d23ec88dab51cb99ab5314590997f75 /src/scheduler.cpp
parentda9beb288d2ee35b9c70513dd18f220b2dc32f16 (diff)
Replace boost::reverse_lock with our own.
Diffstat (limited to 'src/scheduler.cpp')
-rw-r--r--src/scheduler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/scheduler.cpp b/src/scheduler.cpp
index 06115f5619..184ddc28ab 100644
--- a/src/scheduler.cpp
+++ b/src/scheduler.cpp
@@ -4,9 +4,10 @@
#include "scheduler.h"
+#include "reverselock.h"
+
#include <assert.h>
#include <boost/bind.hpp>
-#include <boost/thread/reverse_lock.hpp>
#include <utility>
CScheduler::CScheduler() : nThreadsServicingQueue(0), stopRequested(false), stopWhenEmpty(false)
@@ -69,7 +70,7 @@ void CScheduler::serviceQueue()
{
// Unlock before calling f, so it can reschedule itself or another task
// without deadlocking:
- boost::reverse_lock<boost::unique_lock<boost::mutex> > rlock(lock);
+ reverse_lock<boost::unique_lock<boost::mutex> > rlock(lock);
f();
}
} catch (...) {