/* * Copyright (c) 2015-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #include #include #include #include #include namespace Swift { class SWIFTEN_API BoostASIOEventLoop : public EventLoop { public: BoostASIOEventLoop(std::shared_ptr ioService); virtual ~BoostASIOEventLoop(); protected: void handleASIOEvent(); virtual void eventPosted(); private: std::shared_ptr ioService_; bool isEventInASIOEventLoop_ = false; std::recursive_mutex isEventInASIOEventLoopMutex_; }; }