summaryrefslogtreecommitdiff
path: root/src/common/multi_level_queue.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-03-19 20:28:03 -0400
committerGravatar FernandoS272019-03-27 14:34:33 -0400
commitf35e09fe0dee84e3373ea1e2daac8d120621fe61 (patch)
tree1e057985ce48ce235226bc2e507ac55b7860f574 /src/common/multi_level_queue.h
parentUse MultiLevelQueue instead of old ThreadQueueList (diff)
downloadyuzu-f35e09fe0dee84e3373ea1e2daac8d120621fe61.tar.gz
yuzu-f35e09fe0dee84e3373ea1e2daac8d120621fe61.tar.xz
yuzu-f35e09fe0dee84e3373ea1e2daac8d120621fe61.zip
Fixes to multilevelqueue's iterator.
Diffstat (limited to '')
-rw-r--r--src/common/multi_level_queue.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/multi_level_queue.h b/src/common/multi_level_queue.h
index d56ab6531..68b35ffaa 100644
--- a/src/common/multi_level_queue.h
+++ b/src/common/multi_level_queue.h
@@ -35,7 +35,11 @@ public:
35 using difference_type = typename std::pointer_traits<pointer>::difference_type; 35 using difference_type = typename std::pointer_traits<pointer>::difference_type;
36 36
37 friend bool operator==(const iterator_impl& lhs, const iterator_impl& rhs) { 37 friend bool operator==(const iterator_impl& lhs, const iterator_impl& rhs) {
38 return (lhs.IsEnd() && rhs.IsEnd()) || lhs.it == rhs.it; 38 if (lhs.IsEnd() && rhs.IsEnd())
39 return true;
40 if (lhs.current_priority == rhs.current_priority)
41 return lhs.it == rhs.it;
42 return false;
39 } 43 }
40 44
41 friend bool operator!=(const iterator_impl& lhs, const iterator_impl& rhs) { 45 friend bool operator!=(const iterator_impl& lhs, const iterator_impl& rhs) {