![]() |
Home | Libraries | People | FAQ | More |
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);
The target executor.
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.
The deepest a blocking.possibly
execute(),
or dispatch(),
made from inside this trampoline's own frame may run immediately
rather than queue.
if max_inline_depth
is greater than 255.