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::stopped

Determine whether the io_context object has been stopped.

bool stopped() const;

This function is used to determine whether an io_context object has been stopped, either through an explicit call to stop(), or due to running out of work. When an io_context object is stopped, calls to run(), run_one(), poll() or poll_one() will return immediately without invoking any handlers.

Return Value

true if the io_context object is stopped, otherwise false.


PrevUpHomeNext