MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / schedule

Method schedule

3rdparty/asyncplusplus/src/scheduler.cpp:178–185  ·  view source on GitHub ↗

Thread scheduler implementation

Source from the content-addressed store, hash-verified

176
177// Thread scheduler implementation
178void thread_scheduler_impl::schedule(task_run_handle t)
179{
180 // A shared_ptr is used here because not all implementations of
181 // std::thread support move-only objects.
182 std::thread([](const std::shared_ptr<task_run_handle>& t) {
183 t->run();
184 }, std::make_shared<task_run_handle>(std::move(t))).detach();
185}
186
187} // namespace detail
188

Callers

nothing calls this directly

Calls 2

runMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected