mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 23:05:58 +01:00
watchdog: remove thread on destroy
This commit is contained in:
parent
27cd7ef0c9
commit
ab11bd2085
2 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,10 @@
|
|||
#include <signal.h>
|
||||
#include "config/ConfigManager.hpp"
|
||||
|
||||
CWatchdog::~CWatchdog() {
|
||||
m_pWatchdog.reset();
|
||||
}
|
||||
|
||||
CWatchdog::CWatchdog() {
|
||||
m_iMainThreadPID = pthread_self();
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ class CWatchdog {
|
|||
public:
|
||||
// must be called from the main thread
|
||||
CWatchdog();
|
||||
~CWatchdog();
|
||||
|
||||
void startWatching();
|
||||
void endWatching();
|
||||
|
|
Loading…
Reference in a new issue