| 82 | } |
| 83 | |
| 84 | bool openhd::AsyncHandle::terminate_when_done( |
| 85 | const openhd::AsyncHandle::RunningTask& task) { |
| 86 | if (!task.done) return false; |
| 87 | if (task.worker_thread->joinable()) { |
| 88 | task.worker_thread->join(); |
| 89 | } |
| 90 | return true; |
| 91 | } |
| 92 | |
| 93 | void openhd::AsyncHandle::check_watchdog() { |
| 94 | while (m_watchdog_run) { |
nothing calls this directly
no outgoing calls
no test coverage detected