mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-14 19:45:45 -07:00
watchdog: remove thread on destroy
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include "config/ConfigManager.hpp"
|
#include "config/ConfigManager.hpp"
|
||||||
|
|
||||||
|
CWatchdog::~CWatchdog() {
|
||||||
|
m_pWatchdog.reset();
|
||||||
|
}
|
||||||
|
|
||||||
CWatchdog::CWatchdog() {
|
CWatchdog::CWatchdog() {
|
||||||
m_iMainThreadPID = pthread_self();
|
m_iMainThreadPID = pthread_self();
|
||||||
|
|
||||||
|
@@ -9,6 +9,7 @@ class CWatchdog {
|
|||||||
public:
|
public:
|
||||||
// must be called from the main thread
|
// must be called from the main thread
|
||||||
CWatchdog();
|
CWatchdog();
|
||||||
|
~CWatchdog();
|
||||||
|
|
||||||
void startWatching();
|
void startWatching();
|
||||||
void endWatching();
|
void endWatching();
|
||||||
|
Reference in New Issue
Block a user