/* * Copyright (c) 2010-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #include #include namespace Swift { class SWIFTEN_API DummyEventLoop : public EventLoop { public: DummyEventLoop(); virtual ~DummyEventLoop(); void processEvents(); bool hasEvents(); virtual void eventPosted(); private: std::atomic hasEvents_ = ATOMIC_VAR_INIT(false); }; }