MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Submit

Function Submit

src/test/threadpool_tests.cpp:60–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58// Helper to unwrap a valid pool submission
59template <typename F>
60[[nodiscard]] auto Submit(ThreadPool& pool, F&& fn)
61{
62 return std::move(*Assert(pool.Submit(std::forward<F>(fn))));
63}
64
65// Block a number of worker threads by submitting tasks that wait on `release_sem`.
66// Returns the futures of the blocking tasks, ensuring all have started and are waiting.

Callers 2

BlockWorkersFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected