boost::capy::work_guard::work_guard

Copy constructor.

Synopsis

work_guard(work_guard const& other) noexcept;

Description

Creates a new work guard holding work on the same executor. Calls on_work_started() on the executor.

Exception Safety

No‐throw guarantee.

Postconditions

  • `owns_work() == other.owns_work()`

  • `executor() == other.executor()`

Parameters

Name Description

other

The work guard to copy from.

Created with MrDocs