]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/beast/test/extras/include/boost/beast/test/yield_to.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / beast / test / extras / include / boost / beast / test / yield_to.hpp
index e0064830b2d5124f0c317c93d27c0fe52328886b..4a809745dd67a76b02494123c24e0908c9e13be4 100644 (file)
@@ -35,8 +35,8 @@ protected:
     net::io_context ioc_;
 
 private:
-    net::executor_work_guard<
-        net::io_context::executor_type> work_;
+    detail::select_work_guard_t<net::io_context::executor_type>
+        work_;
     std::vector<std::thread> threads_;
     std::mutex m_;
     std::condition_variable cv_;
@@ -49,7 +49,7 @@ public:
 
     explicit
     enable_yield_to(std::size_t concurrency = 1)
-        : work_(ioc_.get_executor())
+        : work_(detail::make_work_guard(ioc_.get_executor()))
     {
         threads_.reserve(concurrency);
         while(concurrency--)
@@ -136,4 +136,5 @@ spawn(F0&& f, FN&&... fn)
 } // beast
 } // boost
 
+
 #endif