函数 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