From dfc0f2ae007e186c724b871c7df27f2bf43f76d6 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Wed, 26 Aug 2015 23:02:45 +0100 Subject: Small fix for cEvent Don't bother using atomics since a synchronisation primitive is already being used. --- src/OSSupport/Event.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/OSSupport/Event.h') diff --git a/src/OSSupport/Event.h b/src/OSSupport/Event.h index 2c58ba485..067a2207c 100644 --- a/src/OSSupport/Event.h +++ b/src/OSSupport/Event.h @@ -12,7 +12,6 @@ #include #include -#include @@ -42,7 +41,7 @@ public: private: /** Used for checking for spurious wakeups. */ - std::atomic m_ShouldContinue; + bool m_ShouldContinue; /** Mutex protecting m_ShouldContinue from multithreaded access. */ std::mutex m_Mutex; -- cgit v1.2.3