MCPcopy Create free account
hub / github.com/boostorg/asio / dispatch

Method dispatch

include/boost/asio/impl/executor.hpp:273–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271
272template <typename Function, typename Allocator>
273void 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
283template <typename Function, typename Allocator>
284void executor::post(Function&& f,

Callers 3

dispatchFunction · 0.45
dispatchMethod · 0.45
dispatchMethod · 0.45

Calls 1

functionClass · 0.50

Tested by

no test coverage detected