asio C++ library

PrevUpHomeNext

make_strand

The asio::make_strand function creates a strand object for an executor or execution context.

Create a strand object for an executor.

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

Create a strand object for an execution context.

template<
    typename ExecutionContext>
strand< typename ExecutionContext::executor_type > make_strand(
    ExecutionContext & ctx,
    typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type *  = 0);
  » more...
Requirements

Header: asio/strand.hpp

Convenience header: asio.hpp


PrevUpHomeNext