summaryrefslogtreecommitdiff
path: root/src/common/thread_queue_list.h
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-11-22 00:33:53 -0500
committerGravatar Zach Hilman2018-11-22 00:33:53 -0500
commit820d81b9a5392951c18daa5a47d6c0ffd28baa9b (patch)
treedab20f1ff49ab76cdcd511e189799f4d6e40677e /src/common/thread_queue_list.h
parentsvc: Implement yield types 0 and -1 (diff)
downloadyuzu-820d81b9a5392951c18daa5a47d6c0ffd28baa9b.tar.gz
yuzu-820d81b9a5392951c18daa5a47d6c0ffd28baa9b.tar.xz
yuzu-820d81b9a5392951c18daa5a47d6c0ffd28baa9b.zip
scheduler: Add explanations for YieldWith and WithoutLoadBalancing
Diffstat (limited to 'src/common/thread_queue_list.h')
-rw-r--r--src/common/thread_queue_list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/thread_queue_list.h b/src/common/thread_queue_list.h
index 323eab97c..e7594db68 100644
--- a/src/common/thread_queue_list.h
+++ b/src/common/thread_queue_list.h
@@ -6,7 +6,6 @@
6 6
7#include <array> 7#include <array>
8#include <deque> 8#include <deque>
9#include <functional>
10#include <boost/range/algorithm_ext/erase.hpp> 9#include <boost/range/algorithm_ext/erase.hpp>
11 10
12namespace Common { 11namespace Common {
@@ -50,7 +49,8 @@ struct ThreadQueueList {
50 return T(); 49 return T();
51 } 50 }
52 51
53 T get_first_filter(std::function<bool(T)> filter) const { 52 template <typename UnaryPredicate>
53 T get_first_filter(UnaryPredicate filter) const {
54 const Queue* cur = first; 54 const Queue* cur = first;
55 while (cur != nullptr) { 55 while (cur != nullptr) {
56 if (!cur->data.empty()) { 56 if (!cur->data.empty()) {