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 to view this page for the latest version.
PrevUpHomeNext
io_context::work::work (1 of 2 overloads)

Constructor notifies the io_context that work is starting.

work(
    boost::asio::io_context & io_context);

The constructor is used to inform the io_context that some work has begun. This ensures that the io_context object's run() function will not exit while the work is underway.


PrevUpHomeNext