1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 13:24:20 +01:00

[dxvk] Minor CS improvement

This commit is contained in:
Philip Rebohle 2018-01-29 00:00:19 +01:00
parent 6d75178870
commit 7e5a511fa0
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -80,9 +80,12 @@ namespace dxvk {
m_condOnSync.notify_one();
}
if (m_chunksQueued.size() == 0) {
m_condOnAdd.wait(lock, [this] {
return m_stopped.load() || (m_chunksQueued.size() != 0);
return (m_chunksQueued.size() != 0)
|| (m_stopped.load());
});
}
if (m_chunksQueued.size() != 0) {
chunk = std::move(m_chunksQueued.front());