summaryrefslogtreecommitdiff
path: root/src/helpers/Watchdog.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-04-09 01:48:21 +0100
committerVaxry <vaxry@vaxry.net>2025-04-09 01:48:21 +0100
commit4f991610d03609e4cfe06b4a1be694ce439b779b (patch)
treeebd75cf9eb4000ee775c8c9b08b110836918a4cd /src/helpers/Watchdog.hpp
parentea852965ffd4bf2bd2a74c0e821ba6190021eb31 (diff)
watchdog: remove watchdog
it has been unused for a while now
Diffstat (limited to 'src/helpers/Watchdog.hpp')
-rw-r--r--src/helpers/Watchdog.hpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/helpers/Watchdog.hpp b/src/helpers/Watchdog.hpp
deleted file mode 100644
index 51b71d13..00000000
--- a/src/helpers/Watchdog.hpp
+++ /dev/null
@@ -1,34 +0,0 @@
-#pragma once
-
-#include "memory/Memory.hpp"
-#include <chrono>
-#include <thread>
-#include <condition_variable>
-
-class CWatchdog {
- public:
- // must be called from the main thread
- CWatchdog();
- ~CWatchdog();
-
- void startWatching();
- void endWatching();
-
- std::atomic<bool> m_bWatchdogInitialized{false};
-
- private:
- std::chrono::high_resolution_clock::time_point m_tTriggered;
-
- pthread_t m_iMainThreadPID = 0;
-
- std::atomic<bool> m_bWatching = false;
- std::atomic<bool> m_bWillWatch = false;
-
- UP<std::thread> m_pWatchdog;
- std::mutex m_mWatchdogMutex;
- std::atomic<bool> m_bNotified = false;
- std::atomic<bool> m_bExitThread = false;
- std::condition_variable m_cvWatchdogCondition;
-};
-
-inline UP<CWatchdog> g_pWatchdog; \ No newline at end of file