![]() |
Home | Libraries | People | FAQ | More |
Request the executor to invoke the given function object.
template< typename Function, typename OtherAllocator> void dispatch( Function && f, const OtherAllocator & a) const;
If there is a trampoline with this executor's identity installed on the current thread, and it has sufficient capacity, the function object is queued on it. If the trampoline has no more capacity, or has a different identity, the function object is submitted to the target executor's dispatch function. If there is no trampoline, the target executor's dispatch function is given a wrapper that establishes one from within the target's own execution.
The function object to be called.
An allocator that may be used by the executor.