Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
trampoline::trampoline (2 of 6 overloads)

Construct an executor for the specified target executor.

template<
    typename Executor1,
      = constraint_t<        conditional_t<          !is_same<Executor1, trampoline>::value,          is_convertible<Executor1, Executor>,          false_type        >::value      >>
trampoline(
    const Executor1 & e,
    std::size_t calls,
    std::size_t max_inline_depth = 0);
Parameters

e

The target executor.

calls

The maximum number of additional calls (i.e. excluding the call that installs the trampoline) that can be run on the trampoline, if this executor installs the trampoline. Pass (std::numeric_limits<std::size_t>::max)() to specify that the trampoline places no bound on the number of calls.

max_inline_depth

The deepest a blocking.possibly execute(), or dispatch(), made from inside this trampoline's own frame may run immediately rather than queue.

Exceptions

std::out_of_range

if max_inline_depth is greater than 255.


PrevUpHomeNext