Skip to content
Commit 1ba0251b authored by Tom Burdick's avatar Tom Burdick Committed by Maureen Helm
Browse files

tests: rtio: Fix potential race in iodev test



Race was possible though very unlikely between the atomic cas
and queue push/pop operations. The outcome of the race had it shown up
would have been a submission not worked on due to the timer never being
started. A small critical section fixes this and clarifies where the single
conumer part of the mpsc queue comes in despite there being multiple
contexts which may enter that section.

Signed-off-by: default avatarTom Burdick <thomas.burdick@intel.com>
parent 22273e34
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment