2 // detail/null_reactor.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~
5 // Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com)
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
11 #ifndef BOOST_ASIO_DETAIL_NULL_REACTOR_HPP
12 #define BOOST_ASIO_DETAIL_NULL_REACTOR_HPP
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
18 #include <boost/asio/detail/config.hpp>
20 #if defined(BOOST_ASIO_HAS_IOCP) || defined(BOOST_ASIO_WINDOWS_RUNTIME)
22 #include <boost/asio/detail/scheduler_operation.hpp>
23 #include <boost/asio/execution_context.hpp>
25 #include <boost/asio/detail/push_options.hpp>
32 : public execution_context_service_base<null_reactor>
36 null_reactor(boost::asio::execution_context& ctx)
37 : execution_context_service_base<null_reactor>(ctx)
46 // Destroy all user-defined handler objects owned by the service.
51 // No-op because should never be called.
52 void run(long /*usec*/, op_queue<scheduler_operation>& /*ops*/)
66 #include <boost/asio/detail/pop_options.hpp>
68 #endif // defined(BOOST_ASIO_HAS_IOCP) || defined(BOOST_ASIO_WINDOWS_RUNTIME)
70 #endif // BOOST_ASIO_DETAIL_NULL_REACTOR_HPP