zephyr/tests/subsys/rtio/rtio_api/src
Tom Burdick 49a97540dc rtio: Use an atomic completion counter
Rather than looking at the pool of completions for spinning use an
atomic counter of total completions ever done. The relative number of
completions being waited on by rtio_submit may then always be correctly
done.

Prior to this a race was possible, and understood, as
rtio_cqe_consumable was a likely but not guaranteed count of completions.
Sure enough on an SMP system the likely count was ahead of the actual
available completions and a race was caught by the simple test case.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2023-07-24 09:04:43 +00:00
..
rtio_api.h
rtio_iodev_test.h rtio: Add support for multishot reads 2023-05-15 10:10:12 -04:00
test_rtio_api.c rtio: Use an atomic completion counter 2023-07-24 09:04:43 +00:00
test_rtio_mpsc.c rtio: Make MPSC faster on non-smp systems 2023-05-10 00:39:43 +09:00
test_rtio_spsc.c tests: subsys: rtio: Reset the spsc before the test starts 2023-07-12 14:27:40 +00:00