@ -82,7 +82,11 @@ test_spmc(void *c)
struct entry *o;
/* Keep trying until we encounter at least one node. */
while (ck_ring_dequeue_spmc(&ring_spmc, &o) == false);
if (j & 1) {
} else {
while (ck_ring_trydequeue_spmc(&ring_spmc, &o) == false);
}
observed++;
if (o->value < 0
@ -83,7 +83,13 @@ test_spmc(void *c)
struct entry o;
while (CK_RING_DEQUEUE_SPMC(spmc_ring, &ring_spmc, &o) == false);
while (CK_RING_DEQUEUE_SPMC(spmc_ring,
&ring_spmc, &o) == false);
while (CK_RING_TRYDEQUEUE_SPMC(spmc_ring,
if (o.value < 0