aboutsummaryrefslogtreecommitdiff
path: root/src/GPU3D_Soft.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/GPU3D_Soft.h')
-rw-r--r--src/GPU3D_Soft.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GPU3D_Soft.h b/src/GPU3D_Soft.h
index ee1977d..9f6f993 100644
--- a/src/GPU3D_Soft.h
+++ b/src/GPU3D_Soft.h
@@ -21,6 +21,7 @@
#include "GPU3D.h"
#include "Platform.h"
#include <thread>
+#include <atomic>
namespace GPU3D
{
@@ -506,8 +507,8 @@ private:
bool Threaded;
Platform::Thread* RenderThread;
- bool RenderThreadRunning;
- bool RenderThreadRendering;
+ std::atomic_bool RenderThreadRunning;
+ std::atomic_bool RenderThreadRendering;
Platform::Semaphore* Sema_RenderStart;
Platform::Semaphore* Sema_RenderDone;
Platform::Semaphore* Sema_ScanlineCount;