summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/EventLoop/BoostASIOEventLoop.cpp')
-rw-r--r--Swiften/EventLoop/BoostASIOEventLoop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/EventLoop/BoostASIOEventLoop.cpp b/Swiften/EventLoop/BoostASIOEventLoop.cpp
index bab8b54..30143b9 100644
--- a/Swiften/EventLoop/BoostASIOEventLoop.cpp
+++ b/Swiften/EventLoop/BoostASIOEventLoop.cpp
@@ -20,14 +20,14 @@ BoostASIOEventLoop::~BoostASIOEventLoop() {
void BoostASIOEventLoop::handleASIOEvent() {
{
- boost::recursive_mutex::scoped_lock lock(isEventInASIOEventLoopMutex_);
+ std::unique_lock<std::recursive_mutex> lock(isEventInASIOEventLoopMutex_);
isEventInASIOEventLoop_ = false;
}
handleNextEvents();
}
void BoostASIOEventLoop::eventPosted() {
- boost::recursive_mutex::scoped_lock lock(isEventInASIOEventLoopMutex_);
+ std::unique_lock<std::recursive_mutex> lock(isEventInASIOEventLoopMutex_);
if (!isEventInASIOEventLoop_) {
isEventInASIOEventLoop_ = true;
ioService_->post(boost::bind(&BoostASIOEventLoop::handleASIOEvent, this));