Minor fix

c++11
scrawl 10 years ago
parent 98571148b0
commit b204396b57

@ -17,8 +17,10 @@ void WorkTicket::waitTillDone()
void WorkTicket::signalDone() void WorkTicket::signalDone()
{ {
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(mMutex); {
mDone.exchange(1); OpenThreads::ScopedLock<OpenThreads::Mutex> lock(mMutex);
mDone.exchange(1);
}
mCondition.broadcast(); mCondition.broadcast();
} }

Loading…
Cancel
Save