mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-19 02:36:27 +01:00
Optimise cond_var predicate order
m_items.empty() is by far the most likely reason for a notification.
This commit is contained in:
parent
271ffde71d
commit
2ff155f742
@ -147,7 +147,7 @@ private:
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
m_worker_cond_var.wait(
|
m_worker_cond_var.wait(
|
||||||
lg, [&] { return m_shutdown || m_cancelling.load() || !m_items.empty(); });
|
lg, [&] { return !m_items.empty() || m_shutdown || m_cancelling.load(); });
|
||||||
}
|
}
|
||||||
T item{std::move(m_items.front())};
|
T item{std::move(m_items.front())};
|
||||||
m_items.pop();
|
m_items.pop();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user