Skip to content
Commit b4ece0ad authored by Peter Bigot's avatar Peter Bigot Committed by Carles Cufi
Browse files

kernel: timeout: detect inactive timeouts using dnode linked state



Whether a timeout is linked into the timeout queue can be determined
from the corresponding sys_dnode_t linked state.  This removes the need
to use a special flag value in dticks to determine that the timeout is
inactive.

Update _abort_timeout to return an error code, rather than the flag
value, when the timeout to be aborted was not active.

Remove the _INACTIVE flag value, and replace its external uses with an
internal API function that checks whether a timeout is inactive.

Signed-off-by: default avatarPeter A. Bigot <pab@pabigot.com>
parent 4863aa80
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment