diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2018-11-22 00:33:53 -0500 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2018-11-22 00:33:53 -0500 |
| commit | 1a72e1681c6499ccd9f2779c48f558775ccfd679 (patch) | |
| tree | dab20f1ff49ab76cdcd511e189799f4d6e40677e /src/common/thread_queue_list.h | |
| parent | b1c19bc88f7c0761ecdebdda67aed06550a1bd58 (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.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 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()) { |
