]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/asio/example/cpp03/timers/time_t_timer.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / asio / example / cpp03 / timers / time_t_timer.cpp
index 5685a71c5cbae1dc3f9233fae5f35924d5d13c4b..95b443eccdb467a1058a749e37b0337be481ab04 100644 (file)
@@ -2,7 +2,7 @@
 // time_t_timer.cpp
 // ~~~~~~~~~~~~~~~~
 //
-// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+// Copyright (c) 2003-2017 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)
@@ -69,9 +69,9 @@ int main()
 {
   try
   {
-    boost::asio::io_service io_service;
+    boost::asio::io_context io_context;
 
-    time_t_timer timer(io_service);
+    time_t_timer timer(io_context);
 
     timer.expires_from_now(5);
     std::cout << "Starting synchronous wait\n";
@@ -81,7 +81,7 @@ int main()
     timer.expires_from_now(5);
     std::cout << "Starting asynchronous wait\n";
     timer.async_wait(&handle_timeout);
-    io_service.run();
+    io_context.run();
     std::cout << "Finished asynchronous wait\n";
   }
   catch (std::exception& e)