Skip to content
Commit 9ae9df8b authored by Alexander Razinkov's avatar Alexander Razinkov Committed by Carles Cufí
Browse files

kernel: spinlock: k_spin_is_locked introduction



Currently spinlock internals are directly accessed from the tests.
This way the test becomes bound to the particular spinlock implementation.
To remove this unnecessary dependency the distinct API to check if spinlock
is locked is introduced.

k_spin_is_locked should be used for the spinlock testing only,
so the scope of this API is intentionally restricted.

Signed-off-by: default avatarAlexander Razinkov <alexander.razinkov@syntacore.com>
parent 22fbd73f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment