Boost C++ 库

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

make_strand - Boost C++ 函数库
PrevUpHomeNext

函数 make_strand 为执行器或执行上下文创建一个 strand 对象。

为执行器创建一个 strand 对象。

template<
    typename Executor>
strand< Executor > make_strand(
    const Executor & ex,
    constraint_t< is_executor< Executor >::value||execution::is_executor< Executor >::value >  = 0);
  » more...

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

template<
    typename ExecutionContext>
strand< typename ExecutionContext::executor_type > make_strand(
    ExecutionContext & ctx,
    constraint_t< is_convertible< ExecutionContext &, execution_context & >::value >  = 0);
  » more...
要求

头文件:boost/asio/strand.hpp

便捷头文件: boost/asio.hpp


PrevUpHomeNext