From ef741d1b050dcb54fb1d2003bfb66b0176c51230 Mon Sep 17 00:00:00 2001 From: rachytski Date: Thu, 2 Feb 2012 09:48:15 +0400 Subject: [PATCH] more accurate synchronization in ThreadedContainer::Cancel --- base/threaded_container.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/base/threaded_container.cpp b/base/threaded_container.cpp index 0f3b371312..825bce8eb4 100644 --- a/base/threaded_container.cpp +++ b/base/threaded_container.cpp @@ -7,6 +7,7 @@ ThreadedContainer::ThreadedContainer() void ThreadedContainer::Cancel() { + threads::ConditionGuard g(m_Cond); m_IsCancelled = true; m_Cond.Signal(true); }