diff options
author | 2024-04-22 08:04:58 +1000 | |
---|---|---|
committer | 2024-04-22 08:04:58 +1000 | |
commit | 184292b730f4236bd4840e780fdad97ee060ec84 (patch) | |
tree | 67902161a465fe92aec78ca502de07092b8cde0f /3rdparty/asio/src/examples/cpp11/futures/daytime_client.cpp | |
parent | 24154bc1f00790f344120b3a85175d6f616c5ad0 (diff) |
3rdparty/asio: Updated to 1.30.2
Diffstat (limited to '3rdparty/asio/src/examples/cpp11/futures/daytime_client.cpp')
-rw-r--r-- | 3rdparty/asio/src/examples/cpp11/futures/daytime_client.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/3rdparty/asio/src/examples/cpp11/futures/daytime_client.cpp b/3rdparty/asio/src/examples/cpp11/futures/daytime_client.cpp index 7744d630cb9..2f5314ede39 100644 --- a/3rdparty/asio/src/examples/cpp11/futures/daytime_client.cpp +++ b/3rdparty/asio/src/examples/cpp11/futures/daytime_client.cpp @@ -2,7 +2,7 @@ // daytime_client.cpp // ~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2021 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) @@ -77,8 +77,7 @@ int main(int argc, char* argv[]) // We run the io_context off in its own thread so that it operates // completely asynchronously with respect to the rest of the program. asio::io_context io_context; - auto work = asio::require(io_context.get_executor(), - asio::execution::outstanding_work.tracked); + auto work = asio::make_work_guard(io_context); std::thread thread([&io_context](){ io_context.run(); }); get_daytime(io_context, argv[1]); |