12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #ifndef BOOST_ASIO_DETAIL_NULL_REACTOR_HPP
- #define BOOST_ASIO_DETAIL_NULL_REACTOR_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include <boost/asio/detail/config.hpp>
- #if defined(BOOST_ASIO_HAS_IOCP) \
- || defined(BOOST_ASIO_WINDOWS_RUNTIME) \
- || defined(BOOST_ASIO_HAS_IO_URING_AS_DEFAULT)
- #include <boost/asio/detail/scheduler_operation.hpp>
- #include <boost/asio/detail/scheduler_task.hpp>
- #include <boost/asio/execution_context.hpp>
- #include <boost/asio/detail/push_options.hpp>
- namespace boost {
- namespace asio {
- namespace detail {
- class null_reactor
- : public execution_context_service_base<null_reactor>,
- public scheduler_task
- {
- public:
- struct per_descriptor_data
- {
- };
-
- null_reactor(boost::asio::execution_context& ctx)
- : execution_context_service_base<null_reactor>(ctx)
- {
- }
-
- ~null_reactor()
- {
- }
-
- void init_task()
- {
- }
-
- void shutdown()
- {
- }
-
- void run(long , op_queue<scheduler_operation>& )
- {
- }
-
- void interrupt()
- {
- }
- };
- }
- }
- }
- #include <boost/asio/detail/pop_options.hpp>
- #endif
-
-
- #endif
|