mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Make m_Shutdown
variable atomic instead of volatile
This commit is contained in:
parent
a3cdfac84e
commit
01d81fc4cc
|
@ -42,7 +42,7 @@ class CJobPool
|
||||||
};
|
};
|
||||||
int m_NumThreads;
|
int m_NumThreads;
|
||||||
void *m_apThreads[MAX_THREADS];
|
void *m_apThreads[MAX_THREADS];
|
||||||
volatile bool m_Shutdown;
|
std::atomic<bool> m_Shutdown;
|
||||||
|
|
||||||
LOCK m_Lock;
|
LOCK m_Lock;
|
||||||
SEMAPHORE m_Semaphore;
|
SEMAPHORE m_Semaphore;
|
||||||
|
|
Loading…
Reference in a new issue