asio C++ library

PrevUpHomeNext

make_work

Create an executor_work object.

template<
    typename Executor>
executor_work< Executor > make_work(
    const Executor & ex,
    typename enable_if< is_executor< Executor >::value >::type *  = 0);
  » more...

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

template<
    typename T>
executor_work< typename associated_executor< T >::type > make_work(
    const T & t,
    typename enable_if<!is_executor< T >::value &&!is_convertible< T &, execution_context & >::value >::type *  = 0);
  » more...

template<
    typename T,
    typename Executor>
executor_work< typename associated_executor< T, Executor >::type > make_work(
    const T & t,
    const Executor & ex,
    typename enable_if< is_executor< Executor >::value >::type *  = 0);
  » more...

template<
    typename T,
    typename ExecutionContext>
executor_work< typename associated_executor< T, typename ExecutionContext::executor_type >::type > make_work(
    const T & t,
    ExecutionContext & ctx,
    typename enable_if<!is_executor< T >::value &&!is_convertible< T &, execution_context & >::value >::type *  = 0);
  » more...
Requirements

Header: asio/executor_work.hpp

Convenience header: asio.hpp


PrevUpHomeNext