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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user