From d489bcc2cba7c454874ae09e2e1df5d9dc6958aa Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Wed, 18 Dec 2013 18:10:39 -0800 Subject: Removing Atomic.h and all volatiles. --- includes/Threads.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes/Threads.h') diff --git a/includes/Threads.h b/includes/Threads.h index 0dfce1a..ed629be 100644 --- a/includes/Threads.h +++ b/includes/Threads.h @@ -1,5 +1,6 @@ #pragma once +#include #include #include @@ -78,7 +79,7 @@ class Thread { Thread(const Thread &) = delete; Thread & operator=(const Thread &) = delete; pthread_t m_thread; - volatile bool m_joined; + std::atomic m_joined; friend class ThreadHelper; }; -- cgit v1.2.3