/* * Copyright (c) 2015 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(boost::shared_ptr ioService); virtual ~BoostASIOEventLoop(); protected: void handleASIOEvent(); virtual void eventPosted(); private: boost::shared_ptr ioService_; bool isEventInASIOEventLoop_; boost::recursive_mutex isEventInASIOEventLoopMutex_; }; }