| 32 | } |
| 33 | |
| 34 | void Async::initThreadOnce() { |
| 35 | std::call_once(_initThreadFlag, [this]() { |
| 36 | if (!_thread.isRunning()) { |
| 37 | _thread.init(Async::work, this); |
| 38 | } |
| 39 | }); |
| 40 | } |
| 41 | |
| 42 | void Async::stop() { |
| 43 | std::lock_guard<std::mutex> guard(_stopMutex); |
no test coverage detected