From 201d611dfdcb6e50fd034492c34f639d1b3d93fb Mon Sep 17 00:00:00 2001 From: Nadav Har'El <nyh@cloudius-systems.com> Date: Sun, 29 Sep 2013 13:14:50 +0300 Subject: [PATCH] Trivial prototype change Change the name of the argument of wake_with from "Pred" to "Action". This argument is a function to run, *not* a predicate (it's not supposed to return a boolean value), so it doesn't make sense to call it Pred. The implementation of wake_with already used the name "Action" - this patch fixes the prototype too. Signed-off-by: Nadav Har'El <nyh@cloudius-systems.com> --- include/sched.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sched.hh b/include/sched.hh index 465d60e22..7e729709a 100644 --- a/include/sched.hh +++ b/include/sched.hh @@ -202,8 +202,8 @@ public: template <class Pred> static void wait_until(mutex_t* mtx, Pred pred); void wake(); - template <class Pred> - inline void wake_with(Pred pred); + template <class Action> + inline void wake_with(Action action); static void sleep_until(s64 abstime); static void yield(); static void exit() __attribute__((__noreturn__)); -- GitLab