mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 19:24:12 +01:00
[dxvk] Minor CS improvement
This commit is contained in:
parent
6d75178870
commit
7e5a511fa0
@ -80,9 +80,12 @@ namespace dxvk {
|
||||
m_condOnSync.notify_one();
|
||||
}
|
||||
|
||||
m_condOnAdd.wait(lock, [this] {
|
||||
return m_stopped.load() || (m_chunksQueued.size() != 0);
|
||||
});
|
||||
if (m_chunksQueued.size() == 0) {
|
||||
m_condOnAdd.wait(lock, [this] {
|
||||
return (m_chunksQueued.size() != 0)
|
||||
|| (m_stopped.load());
|
||||
});
|
||||
}
|
||||
|
||||
if (m_chunksQueued.size() != 0) {
|
||||
chunk = std::move(m_chunksQueued.front());
|
||||
|
Loading…
Reference in New Issue
Block a user