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

Method execute

example/cpp14/executors/pipeline.cpp:58–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57 template <class Func>
58 void execute(Func f) const
59 {
60 thread_bag& bag = query(execution::context);
61 bag.add_thread(std::thread(std::move(f)));
62 }
63
64 friend bool operator==(const thread_executor&,
65 const thread_executor&) noexcept

Callers 1

pipelineFunction · 0.45

Calls 2

queryFunction · 0.50
add_threadMethod · 0.45

Tested by

no test coverage detected