Skip to content
Commit c13fad3b authored by Benjamin Walsh's avatar Benjamin Walsh Committed by Benjamin Walsh
Browse files

kernel: add utility functions to compare thread priorities



Since lower-numbered thread priorities are higher, the code can be
misleading when comparing priorities, and often require the same type of
comments. Instead, use utility inline functions that does the
comparisons.

_is_prio_higher already existed, but add comparisons for "lower than",
"higher than or equal to" and "lower than or equal to".

Change-Id: I8b58fe9a3dd0eb70e224e970fe851a2575ad468b
Signed-off-by: default avatarBenjamin Walsh <benjamin.walsh@windriver.com>
parent 8450c903
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment