boost::capy::work_guard::work_guard
Construct a work guard.
Synopsis
Declared in <boost/capy/ex/work_guard.hpp>
explicit
work_guard(Ex ex) noexcept;
Description
Calls ex.on_work_started() to inform the executor that work is outstanding.
Postconditions
-
`owns_work() == true`
-
`executor() == ex`
Parameters
| Name | Description |
|---|---|
ex |
The executor to hold work on. Moved into the guard. |
Created with MrDocs