summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/watchdog.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-03-01 10:05:59 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-03-01 13:09:50 +0100
commit91c910e73c8b0faadf9381bc9626dbede88f04fe (patch)
tree648239678f6a3b5c4fb5e64309191b166cfe3e74 /src/osd/sdl/watchdog.h
parent599570bf7f3a01baec9a56edf81075d82a5e4a51 (diff)
Use std::atomic and std::mutex where applicable (nw)
Diffstat (limited to 'src/osd/sdl/watchdog.h')
-rw-r--r--src/osd/sdl/watchdog.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osd/sdl/watchdog.h b/src/osd/sdl/watchdog.h
index 0f15b68f469..18aa11a54f5 100644
--- a/src/osd/sdl/watchdog.h
+++ b/src/osd/sdl/watchdog.h
@@ -11,6 +11,7 @@
//============================================================
#include "modules/sync/osdsync.h"
+#include <atomic>
class watchdog
{
@@ -27,7 +28,7 @@ public:
private:
osd_event * m_event;
osd_thread * m_thread;
- volatile INT32 m_do_exit;
+ std::atomic<INT32> m_do_exit;
osd_ticks_t m_timeout;
};