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

Method function

example/cpp14/executors/fork_join.cpp:204–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 struct function : fork_join_pool::function_base
203 {
204 explicit function(Func f, const std::shared_ptr<std::size_t>& w)
205 : function_(std::move(f))
206 {
207 work_count_ = w;
208 execute_ = [](std::shared_ptr<fork_join_pool::function_base>& p)
209 {
210 Func tmp(std::move(static_cast<function*>(p.get())->function_));
211 p.reset();
212 tmp();
213 };
214 }
215
216 Func function_;
217 };

Callers 1

co_spawn_entry_pointFunction · 0.45

Calls 2

getMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected