MCPcopy Create free account
hub / github.com/ConorWilliams/libfork / make_scheduler

Function make_scheduler

test/source/core/core.cpp:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40template <typename T>
41auto make_scheduler() -> T {
42 if constexpr (std::constructible_from<T, std::size_t>) {
43 return T{std::min(4U, std::thread::hardware_concurrency())};
44 } else {
45 return T{};
46 }
47}
48
49inline constexpr auto noop = [](auto const) -> task<> {
50 LF_LOG("nooop");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected