diff options
Diffstat (limited to '3rdparty/asio/include/asio/detail/strand_service.hpp')
-rw-r--r-- | 3rdparty/asio/include/asio/detail/strand_service.hpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/3rdparty/asio/include/asio/detail/strand_service.hpp b/3rdparty/asio/include/asio/detail/strand_service.hpp index c5d95e7696f..2aec8e5d450 100644 --- a/3rdparty/asio/include/asio/detail/strand_service.hpp +++ b/3rdparty/asio/include/asio/detail/strand_service.hpp @@ -2,7 +2,7 @@ // detail/strand_service.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2021 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) @@ -96,11 +96,10 @@ public: const implementation_type& impl) const; private: - // Helper function to dispatch a handler. Returns true if the handler should - // be dispatched immediately. - ASIO_DECL bool do_dispatch(implementation_type& impl, operation* op); + // Helper function to dispatch a handler. + ASIO_DECL void do_dispatch(implementation_type& impl, operation* op); - // Helper fiunction to post a handler. + // Helper function to post a handler. ASIO_DECL void do_post(implementation_type& impl, operation* op, bool is_continuation); @@ -108,8 +107,11 @@ private: operation* base, const asio::error_code& ec, std::size_t bytes_transferred); + // The io_context used to obtain an I/O executor. + io_context& io_context_; + // The io_context implementation used to post completions. - io_context_impl& io_context_; + io_context_impl& io_context_impl_; // Mutex to protect access to the array of implementations. asio::detail::mutex mutex_; |