...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Stop the io_service
object's event processing
loop.
void stop();
This function does not block, but instead simply signals the io_service
to stop. All invocations
of its run()
or run_one()
member functions should return as soon as possible. Subsequent calls to
run()
,
run_one()
,
poll()
or poll_one()
will return immediately until reset()
is called.