Skip to content
Commit b76cbe9a authored by Carlo Caione's avatar Carlo Caione Committed by Anas Nashif
Browse files

test: dynamic_thread: Fix race condition



There is a race between k_sem_take() and k_object_access_grant() so it
is possible (especially when testing SMP) that the thread tries to take
the semaphore before the originating thread has had the chance to
grant it permission.

Signed-off-by: default avatarCarlo Caione <ccaione@baylibre.com>
parent cd13b679
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment