Skip to content
Commit bb450eb2 authored by Ambroise Vincent's avatar Ambroise Vincent Committed by Anas Nashif
Browse files

net: sockets: Keep lock when notifying condvar



Releasing the lock before notifying condvar led to a race condition
between a thread calling k_condvar_wait to wait for a condition variable
and another thread signalling for this same condition variable. This
resulted in the waiting thread to stay pending and the handle to it
getting removed from the notifyq, meaning it couldn't get woken up
again.

Signed-off-by: default avatarAmbroise Vincent <ambroise.vincent@arm.com>
parent 995eeda2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment