asio C++ library

PrevUpHomeNext
io_context::work::work (2 of 2 overloads)

Copy constructor notifies the io_context that work is starting.

work(
    const work & other);

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