2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-19 14:22:23 +00:00

change asio examples regarding to run_svc()

This commit is contained in:
oliver Kowalke
2016-04-12 08:39:25 +02:00
parent 76127cc268
commit cd24224008
3 changed files with 24 additions and 18 deletions

View File

@@ -146,9 +146,9 @@ int main( int argc, char* argv[]) {
// run io_service in two threads
std::thread t([&io_svc](){
boost::fibers::use_scheduling_algorithm< boost::fibers::asio::round_robin >( io_svc);
io_svc.run();
boost::fibers::asio::run_svc( io_svc);
});
io_svc.run();
boost::fibers::asio::run_svc( io_svc);
t.join();
std::cout << "done." << std::endl;
return EXIT_SUCCESS;