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

kernel: poll: Lock all calls to signal_poll_event



The signal_poll_event function was previously called without the poll
lock held. This created a race condition between a thread calling k_poll
to wait for an event and another thread signalling for this same event.
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 1896130b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment