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

Method Stop

utils/src/runner.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void LoopRunner::Stop()
20{
21 XASSERT(running_.load(), "LoopRunner has already stopped.");
22
23 running_ = false;
24 thread_->join();
25 thread_ = nullptr;
26}
27
28void LoopRunner::Loop(std::function<void()> loop_body)
29{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected