MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / terminate_when_done

Method terminate_when_done

OpenHD/ohd_common/src/openhd_util_async.cpp:84–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84bool 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
93void openhd::AsyncHandle::check_watchdog() {
94 while (m_watchdog_run) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected