2 // detail/null_reactor.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~
5 // Copyright (c) 2003-2022 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) \
21 || defined(BOOST_ASIO_WINDOWS_RUNTIME) \
22 || defined(BOOST_ASIO_HAS_IO_URING_AS_DEFAULT)
24 #include <boost/asio/detail/scheduler_operation.hpp>
25 #include <boost/asio/detail/scheduler_task.hpp>
26 #include <boost/asio/execution_context.hpp>
28 #include <boost/asio/detail/push_options.hpp>
35 : public execution_context_service_base<null_reactor>,
39 struct per_descriptor_data
44 null_reactor(boost::asio::execution_context& ctx)
45 : execution_context_service_base<null_reactor>(ctx)
54 // Initialise the task.
59 // Destroy all user-defined handler objects owned by the service.
64 // No-op because should never be called.
65 void run(long /*usec*/, op_queue<scheduler_operation>& /*ops*/)
79 #include <boost/asio/detail/pop_options.hpp>
81 #endif // defined(BOOST_ASIO_HAS_IOCP)
82 // || defined(BOOST_ASIO_WINDOWS_RUNTIME)
83 // || defined(BOOST_ASIO_HAS_IO_URING_AS_DEFAULT)
85 #endif // BOOST_ASIO_DETAIL_NULL_REACTOR_HPP