X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fasio%2Fexample%2Fcpp11%2Ffutures%2Fdaytime_client.cpp;fp=ceph%2Fsrc%2Fboost%2Flibs%2Fasio%2Fexample%2Fcpp11%2Ffutures%2Fdaytime_client.cpp;h=be763fb4c888723a7620518fae03bde4a73711da;hb=1e59de90020f1d8d374046ef9cca56ccd4e806e2;hp=282993e6ae9c1c32c73cc972313f10ab8ecdff3d;hpb=bd41e436e25044e8e83156060a37c23cb661c364;p=ceph.git diff --git a/ceph/src/boost/libs/asio/example/cpp11/futures/daytime_client.cpp b/ceph/src/boost/libs/asio/example/cpp11/futures/daytime_client.cpp index 282993e6a..be763fb4c 100644 --- a/ceph/src/boost/libs/asio/example/cpp11/futures/daytime_client.cpp +++ b/ceph/src/boost/libs/asio/example/cpp11/futures/daytime_client.cpp @@ -2,7 +2,7 @@ // daytime_client.cpp // ~~~~~~~~~~~~~~~~~~ // -// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// Copyright (c) 2003-2022 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. boost::asio::io_context io_context; - auto work = boost::asio::require(io_context.get_executor(), - boost::asio::execution::outstanding_work.tracked); + auto work = boost::asio::make_work_guard(io_context); std::thread thread([&io_context](){ io_context.run(); }); get_daytime(io_context, argv[1]);