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