diff options
Diffstat (limited to 'Swiften/EventLoop/DummyEventLoop.cpp')
-rw-r--r-- | Swiften/EventLoop/DummyEventLoop.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Swiften/EventLoop/DummyEventLoop.cpp b/Swiften/EventLoop/DummyEventLoop.cpp index d47124b..4dfbac3 100644 --- a/Swiften/EventLoop/DummyEventLoop.cpp +++ b/Swiften/EventLoop/DummyEventLoop.cpp @@ -6,16 +6,16 @@ #include <Swiften/EventLoop/DummyEventLoop.h> -#include <iostream> +#include <Swiften/Base/Log.h> namespace Swift { -DummyEventLoop::DummyEventLoop() : hasEvents_(false) { +DummyEventLoop::DummyEventLoop() { } DummyEventLoop::~DummyEventLoop() { if (hasEvents()) { - std::cerr << "DummyEventLoop: Unhandled events at destruction time" << std::endl; + SWIFT_LOG(warning) << "DummyEventLoop: Unhandled events at destruction time" << std::endl; } } @@ -27,12 +27,10 @@ void DummyEventLoop::processEvents() { } bool DummyEventLoop::hasEvents() { - std::lock_guard<std::mutex> lock(hasEventsMutex_); return hasEvents_; } void DummyEventLoop::eventPosted() { - std::lock_guard<std::mutex> lock(hasEventsMutex_); hasEvents_ = true; } |