aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/selftest/mpmc_ring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/selftest/mpmc_ring.h')
-rw-r--r--src/selftest/mpmc_ring.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/selftest/mpmc_ring.h b/src/selftest/mpmc_ring.h
index 9503b36..97b6c1e 100644
--- a/src/selftest/mpmc_ring.h
+++ b/src/selftest/mpmc_ring.h
@@ -52,6 +52,7 @@ static void consumer_function(struct work_struct *work)
for (i = 0; i < PER_CONSUMER; ++i) {
uintptr_t value;
+
while (!(value = (uintptr_t) mpmc_ptr_ring_consume(ring)))
schedule();