summaryrefslogtreecommitdiff
path: root/includes/Threads.h
diff options
context:
space:
mode:
authorNicolas Noble <pixel@nobis-crew.org>2013-12-18 18:10:39 -0800
committerNicolas Noble <pixel@nobis-crew.org>2013-12-18 18:10:39 -0800
commitd489bcc2cba7c454874ae09e2e1df5d9dc6958aa (patch)
treedcf09d48f609fd7a7834e311663a3885b17459bf /includes/Threads.h
parent9e2b2679cb94ba4950aa98323e4c61a3e53546e2 (diff)
Removing Atomic.h and all volatiles.
Diffstat (limited to 'includes/Threads.h')
-rw-r--r--includes/Threads.h3
1 files changed, 2 insertions, 1 deletions
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 <atomic>
#include <AtStartExit.h>
#include <pthread.h>
@@ -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<bool> m_joined;
friend class ThreadHelper;
};