Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. (cherry picked from commit bb450eb) Original-Signed-off-by: Ambroise Vincent <[email protected]> GitOrigin-RevId: bb450eb Change-Id: Iea780f4f18e9d72718035598dbbaabc610a6ac75 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/4875291 Tested-by: ChromeOS Prod (Robot) <[email protected]> Tested-by: Al Semjonovs <[email protected]> Commit-Queue: Al Semjonovs <[email protected]> Reviewed-by: Al Semjonovs <[email protected]>
- Loading branch information