summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/watchdog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/sdl/watchdog.h')
-rw-r--r--src/osd/sdl/watchdog.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/osd/sdl/watchdog.h b/src/osd/sdl/watchdog.h
index cddba0100ef..9cc2ee03322 100644
--- a/src/osd/sdl/watchdog.h
+++ b/src/osd/sdl/watchdog.h
@@ -20,15 +20,15 @@ public:
watchdog(void);
~watchdog(void);
- void reset() { osd_event_set(m_event); }
+ void reset() { m_event.set(); }
- osd_event * event(void) { return m_event; }
+ osd_event & event(void) { return m_event; }
INT32 do_exit(void) { return m_do_exit; }
osd_ticks_t getTimeout(void) { return m_timeout; }
void setTimeout(int timeout);
private:
- osd_event * m_event;
- std::thread* m_thread;
+ osd_event m_event;
+ std::thread* m_thread;
std::atomic<INT32> m_do_exit;
osd_ticks_t m_timeout;