diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-02-02 09:48:15 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:32:55 +0300 |
commit | ef741d1b050dcb54fb1d2003bfb66b0176c51230 (patch) | |
tree | 8960dc794157c866ca76bfe7647bf5cce692ffa5 /base | |
parent | fa828cedfb84e955204ca99fca999d09af6e99e6 (diff) |
more accurate synchronization in ThreadedContainer::Cancel
Diffstat (limited to 'base')
-rw-r--r-- | base/threaded_container.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |