Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

make_strand (第 2 个重载) - Boost C++ 函数库
PrevUpHomeNext

为执行上下文创建一个 strand 对象。

template<
    typename ExecutionContext>
strand< typename ExecutionContext::executor_type > make_strand(
    ExecutionContext & ctx,
    constraint_t< is_convertible< ExecutionContext &, execution_context & >::value >  = 0);
参数

ctx

一个执行上下文,将从中获取执行器。

返回值

使用执行上下文的执行器构造的 strand,通过执行 ctx.get_executor() 获取。


PrevUpHomeNext