boost::capy::work_guard::work_guard

Construct a work guard.

Synopsis

explicit
work_guard(Ex ex) noexcept;

Description

Calls ex.on_work_started() to inform the executor that work is outstanding.

Exception Safety

No‐throw guarantee.

Postconditions

  • `owns_work() == true`

  • `executor() == ex`

Parameters

Name Description

ex

The executor to hold work on. Moved into the guard.

Created with MrDocs