Boost C++ 库

...世界上最受推崇和专业设计的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ 编码标准

PrevUpHomeNext

make_work_guard (5 个重载中的 1 个)

创建一个 executor_work_guard 对象。

template<
    typename Executor>
executor_work_guard< Executor > make_work_guard(
    const Executor & ex,
    constraint_t< is_executor< Executor >::value||execution::is_executor< Executor >::value >  = 0);
参数

ex

一个执行器。

返回值

一个使用指定执行器构造的 work guard。


PrevUpHomeNext