summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-10-12 14:21:51 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-10-15 17:55:24 +0200
commit25f8606a6dab595eb7a92fce9be32e0489079964 (patch)
tree66ab40014264b8ef8567831ba438e29dd672b255 /src/common
parentKernel_Thread: Eliminate most global accessors. (diff)
downloadyuzu-25f8606a6dab595eb7a92fce9be32e0489079964.tar
yuzu-25f8606a6dab595eb7a92fce9be32e0489079964.tar.gz
yuzu-25f8606a6dab595eb7a92fce9be32e0489079964.tar.bz2
yuzu-25f8606a6dab595eb7a92fce9be32e0489079964.tar.lz
yuzu-25f8606a6dab595eb7a92fce9be32e0489079964.tar.xz
yuzu-25f8606a6dab595eb7a92fce9be32e0489079964.tar.zst
yuzu-25f8606a6dab595eb7a92fce9be32e0489079964.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/multi_level_queue.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/multi_level_queue.h b/src/common/multi_level_queue.h
index 9cb448f56..50acfdbf2 100644
--- a/src/common/multi_level_queue.h
+++ b/src/common/multi_level_queue.h
@@ -304,6 +304,13 @@ public:
return levels[priority == Depth ? 63 : priority].back();
}
+ void clear() {
+ used_priorities = 0;
+ for (std::size_t i = 0; i < Depth; i++) {
+ levels[i].clear();
+ }
+ }
+
private:
using const_list_iterator = typename std::list<T>::const_iterator;