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

attempt of better integration with asio

This commit is contained in:
Oliver Kowalke
2016-01-25 21:48:18 +01:00
parent a4c2315c54
commit dd661d4e5d
4 changed files with 59 additions and 17 deletions

View File

@@ -81,7 +81,7 @@ int main( int argc, char* argv[]) {
boost::fibers::use_scheduling_algorithm< boost::fibers::asio::round_robin >( io_service);
boost::fibers::fiber(
server, boost::ref( io_service), std::atoi( argv[1]) ).detach();
io_service.run();
boost::fibers::asio::run( io_service);
return EXIT_SUCCESS;
} catch ( std::exception const& e) {
std::cerr << "Exception: " << e.what() << "\n";