Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

make_trampoline

The make_trampoline function creates a trampoline object for an executor or execution context.

Create a trampoline object for an executor.

template<
    typename Executor,
      = constraint_t<      is_executor<Executor>::value || execution::is_executor<Executor>::value    >>
trampoline< Executor > make_trampoline(
    const Executor & ex,
    std::size_t calls,
    std::size_t max_inline_depth = 0);
  » more...

Create a trampoline object for an execution context.

template<
    typename ExecutionContext,
      = constraint_t<      is_convertible<ExecutionContext&, execution_context&>::value    >>
trampoline< typename ExecutionContext::executor_type > make_trampoline(
    ExecutionContext & ctx,
    std::size_t calls,
    std::size_t max_inline_depth = 0);
  » more...
Requirements

Header: boost/asio/trampoline.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext