Skip to content
Snippets Groups Projects
Commit 201d611d authored by Nadav Har'El's avatar Nadav Har'El
Browse files

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: default avatarNadav Har'El <nyh@cloudius-systems.com>
parent afa08363
No related branches found
No related tags found
No related merge requests found
......@@ -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__));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment