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

Trivial: wake_with(): rename "pred" to "action"

As Avi correctly pointed out, this shouldn't be called a "Pred",
it doesn't return a boolean - it's just an action. So let's
call it "Action".
parent 20d084f1
No related branches found
No related tags found
No related merge requests found
......@@ -459,15 +459,15 @@ private:
thread* _t;
};
template <class Pred>
template <class Action>
inline
void thread::wake_with(Pred pred)
void thread::wake_with(Action action)
{
// TODO: Try first to disable preemption and if thread and current are on
// the same CPU, we don't need the disable_exit_guard (with its slow atomic
// operations) because we know the thread can't run and exit.
thread_ref_guard guard(this);
pred();
action();
wake();
}
......
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