diff options
Diffstat (limited to '3rdparty/asio/include/asio/detail/null_reactor.hpp')
-rw-r--r-- | 3rdparty/asio/include/asio/detail/null_reactor.hpp | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/3rdparty/asio/include/asio/detail/null_reactor.hpp b/3rdparty/asio/include/asio/detail/null_reactor.hpp index 3b6f1d47705..128f2b45329 100644 --- a/3rdparty/asio/include/asio/detail/null_reactor.hpp +++ b/3rdparty/asio/include/asio/detail/null_reactor.hpp @@ -2,7 +2,7 @@ // detail/null_reactor.hpp // ~~~~~~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -17,9 +17,12 @@ #include "asio/detail/config.hpp" -#if defined(ASIO_HAS_IOCP) || defined(ASIO_WINDOWS_RUNTIME) +#if defined(ASIO_HAS_IOCP) \ + || defined(ASIO_WINDOWS_RUNTIME) \ + || defined(ASIO_HAS_IO_URING_AS_DEFAULT) #include "asio/detail/scheduler_operation.hpp" +#include "asio/detail/scheduler_task.hpp" #include "asio/execution_context.hpp" #include "asio/detail/push_options.hpp" @@ -28,9 +31,14 @@ namespace asio { namespace detail { class null_reactor - : public execution_context_service_base<null_reactor> + : public execution_context_service_base<null_reactor>, + public scheduler_task { public: + struct per_descriptor_data + { + }; + // Constructor. null_reactor(asio::execution_context& ctx) : execution_context_service_base<null_reactor>(ctx) @@ -42,6 +50,11 @@ public: { } + // Initialise the task. + void init_task() + { + } + // Destroy all user-defined handler objects owned by the service. void shutdown() { @@ -63,6 +76,8 @@ public: #include "asio/detail/pop_options.hpp" -#endif // defined(ASIO_HAS_IOCP) || defined(ASIO_WINDOWS_RUNTIME) +#endif // defined(ASIO_HAS_IOCP) + // || defined(ASIO_WINDOWS_RUNTIME) + // || defined(ASIO_HAS_IO_URING_AS_DEFAULT) #endif // ASIO_DETAIL_NULL_REACTOR_HPP |