MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / ~AsyncHandle

Method ~AsyncHandle

OpenHD/ohd_common/src/openhd_util_async.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37openhd::AsyncHandle::~AsyncHandle() {
38 m_watchdog_run = false;
39 m_watchdog_thread->join();
40 for (auto& task : m_tasks) {
41 if (!task->done) {
42 openhd::log::get_default()->warn("{} probably dead", task->tag);
43 }
44 if (task->worker_thread->joinable()) {
45 task->worker_thread->join();
46 }
47 }
48}
49
50openhd::AsyncHandle& openhd::AsyncHandle::instance() {
51 static AsyncHandle instance{};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected