mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
avoid leaking threads in NDSCart_SRAMManager
also atomics
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user