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

Method execute

example/cpp11/executors/pipeline.cpp:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74 template <class Func>
75 void execute(Func f) const
76 {
77 thread_bag& bag = use_service<thread_bag>(query(execution::context));
78 bag.add_thread(std::thread(std::move(f)));
79 }
80
81 friend bool operator==(const thread_executor&,
82 const thread_executor&) noexcept

Callers

nothing calls this directly

Calls 2

queryFunction · 0.50
add_threadMethod · 0.45

Tested by

no test coverage detected