From b204396b576b16d5e6fe2bf8eda090a4d0c97416 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 14 Jun 2015 21:04:59 +0200 Subject: [PATCH] Minor fix --- components/sceneutil/workqueue.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/sceneutil/workqueue.cpp b/components/sceneutil/workqueue.cpp index 9f23fba2d..b642687f0 100644 --- a/components/sceneutil/workqueue.cpp +++ b/components/sceneutil/workqueue.cpp @@ -17,8 +17,10 @@ void WorkTicket::waitTillDone() void WorkTicket::signalDone() { - OpenThreads::ScopedLock lock(mMutex); - mDone.exchange(1); + { + OpenThreads::ScopedLock lock(mMutex); + mDone.exchange(1); + } mCondition.broadcast(); }