Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

io_context::executor_type::on_work_finished

Inform the io_context that some work is no longer outstanding.

void on_work_finished() const;

This function is used to inform the io_context that some work has finished. Once the count of unfinished work reaches zero, the io_context is stopped and the run() and run_one() functions may exit.


PrevUpHomeNext