Skip to content
Commit d370361f authored by Christopher Friedt's avatar Christopher Friedt Committed by Anas Nashif
Browse files

tests: eventfd: blocking read-write test for deadlock bug



Previously, the prototypical use case for `eventfd()` was not
possible in Zephyr due to a deadlock associated with the
`fdtable.c` `k_mutex`.

The prototypical use case for `eventfd()` is to make a
blocking call to `eventfd_read()` from one thread, and then
from another thread, call `eventfd_write()` to "wake up" the
reading thread.

This additional test case ensures that Zephyr supports the
prototypical `eventfd()` use case.

Signed-off-by: default avatarChristopher Friedt <cfriedt@meta.com>
parent e6eb0a70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment