Make m_Shutdown variable atomic instead of volatile

This commit is contained in:
heinrich5991 2017-11-24 09:23:23 +01:00
parent a3cdfac84e
commit 01d81fc4cc

View file

@ -42,7 +42,7 @@ class CJobPool
};
int m_NumThreads;
void *m_apThreads[MAX_THREADS];
volatile bool m_Shutdown;
std::atomic<bool> m_Shutdown;
LOCK m_Lock;
SEMAPHORE m_Semaphore;