diff options
Diffstat (limited to 'Swiften/EventLoop/DummyEventLoop.h')
-rw-r--r-- | Swiften/EventLoop/DummyEventLoop.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Swiften/EventLoop/DummyEventLoop.h b/Swiften/EventLoop/DummyEventLoop.h index e411096..da2a360 100644 --- a/Swiften/EventLoop/DummyEventLoop.h +++ b/Swiften/EventLoop/DummyEventLoop.h @@ -6,8 +6,7 @@ #pragma once -#include <deque> -#include <mutex> +#include <atomic> #include <Swiften/Base/API.h> #include <Swiften/EventLoop/EventLoop.h> @@ -25,7 +24,6 @@ namespace Swift { virtual void eventPosted(); private: - bool hasEvents_; - std::mutex hasEventsMutex_; + std::atomic<bool> hasEvents_ = ATOMIC_VAR_INIT(false); }; } |