diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-12 18:52:25 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-12 18:54:14 +0200 |
commit | 11470f331a8ff51f5e927fa269fd381b2d4262cb (patch) | |
tree | 6dc2b3fe6771cc7abf452d3a595bb48310bea1ec /src/common | |
parent | thread_queue_list: Convert typedef to a type alias (diff) | |
download | yuzu-11470f331a8ff51f5e927fa269fd381b2d4262cb.tar yuzu-11470f331a8ff51f5e927fa269fd381b2d4262cb.tar.gz yuzu-11470f331a8ff51f5e927fa269fd381b2d4262cb.tar.bz2 yuzu-11470f331a8ff51f5e927fa269fd381b2d4262cb.tar.lz yuzu-11470f331a8ff51f5e927fa269fd381b2d4262cb.tar.xz yuzu-11470f331a8ff51f5e927fa269fd381b2d4262cb.tar.zst yuzu-11470f331a8ff51f5e927fa269fd381b2d4262cb.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/thread_queue_list.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/thread_queue_list.h b/src/common/thread_queue_list.h index 258c5f17a..133122c5f 100644 --- a/src/common/thread_queue_list.h +++ b/src/common/thread_queue_list.h @@ -26,9 +26,9 @@ struct ThreadQueueList { } // Only for debugging, returns priority level. - Priority contains(const T& uid) { + Priority contains(const T& uid) const { for (Priority i = 0; i < NUM_QUEUES; ++i) { - Queue& cur = queues[i]; + const Queue& cur = queues[i]; if (std::find(cur.data.cbegin(), cur.data.cend(), uid) != cur.data.cend()) { return i; } @@ -37,8 +37,8 @@ struct ThreadQueueList { return -1; } - T get_first() { - Queue* cur = first; + T get_first() const { + const Queue* cur = first; while (cur != nullptr) { if (!cur->data.empty()) { return cur->data.front(); |