diff options
| author | 2018-11-22 00:33:53 -0500 | |
|---|---|---|
| committer | 2018-11-22 00:33:53 -0500 | |
| commit | 820d81b9a5392951c18daa5a47d6c0ffd28baa9b (patch) | |
| tree | dab20f1ff49ab76cdcd511e189799f4d6e40677e /src/common/thread_queue_list.h | |
| parent | svc: Implement yield types 0 and -1 (diff) | |
| download | yuzu-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.h | 4 |
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 | ||
| 12 | namespace Common { | 11 | namespace 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()) { |