more accurate synchronization in ThreadedContainer::Cancel

This commit is contained in:
rachytski 2012-02-02 09:48:15 +04:00 committed by Alex Zolotarev
parent fa828cedfb
commit ef741d1b05

View file

@ -7,6 +7,7 @@ ThreadedContainer::ThreadedContainer()
void ThreadedContainer::Cancel()
{
threads::ConditionGuard g(m_Cond);
m_IsCancelled = true;
m_Cond.Signal(true);
}