mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 17:58:37 +12:00
d3d12: Fix a potential crash in GC thread
This commit is contained in:
parent
16fa3697db
commit
fc65f181a7
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ GarbageCollectionThread::GarbageCollectionThread()
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
std::unique_lock<std::mutex> lock(m_mutex);
|
std::unique_lock<std::mutex> lock(m_mutex);
|
||||||
if (m_queue.empty())
|
while (m_queue.empty())
|
||||||
cv.wait(lock);
|
cv.wait(lock);
|
||||||
m_queue.front()();
|
m_queue.front()();
|
||||||
m_queue.pop();
|
m_queue.pop();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue