| 271 | |
| 272 | template <typename Function, typename Allocator> |
| 273 | void executor::dispatch(Function&& f, |
| 274 | const Allocator& a) const |
| 275 | { |
| 276 | impl_base* i = get_impl(); |
| 277 | if (i->fast_dispatch_) |
| 278 | system_executor().dispatch(static_cast<Function&&>(f), a); |
| 279 | else |
| 280 | i->dispatch(function(static_cast<Function&&>(f), a)); |
| 281 | } |
| 282 | |
| 283 | template <typename Function, typename Allocator> |
| 284 | void executor::post(Function&& f, |