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_;
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--)
} // beast
} // boost
+
#endif