MCPcopy Create free account
hub / github.com/XpuOS/xsched / Start

Method Start

utils/src/runner.cpp:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11void LoopRunner::Start(std::function<void()> loop_body)
12{
13 XASSERT(!running_.load(), "LoopRunner is already running.");
14
15 running_.store(true);
16 thread_ = std::make_unique<std::thread>(&LoopRunner::Loop, this, loop_body);
17}
18
19void LoopRunner::Stop()
20{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected