aboutsummaryrefslogtreecommitdiff
path: root/src/common/thread_queue_list.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-11-22 00:33:53 -0500
committerZach Hilman <zachhilman@gmail.com>2018-11-22 00:33:53 -0500
commit820d81b9a5392951c18daa5a47d6c0ffd28baa9b (patch)
treedab20f1ff49ab76cdcd511e189799f4d6e40677e /src/common/thread_queue_list.h
parent409dcf0e0aecfdb676fd3b64223a25e47c1b1c1a (diff)
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 323eab97c1..e7594db689 100644
--- a/src/common/thread_queue_list.h
+++ b/src/common/thread_queue_list.h
@@ -6,7 +6,6 @@
#include <array>
#include <deque>
-#include <functional>
#include <boost/range/algorithm_ext/erase.hpp>
namespace Common {
@@ -50,7 +49,8 @@ struct ThreadQueueList {
return T();
}
- T get_first_filter(std::function<bool(T)> filter) const {
+ template <typename UnaryPredicate>
+ T get_first_filter(UnaryPredicate filter) const {
const Queue* cur = first;
while (cur != nullptr) {
if (!cur->data.empty()) {