We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d26c11 commit 23c9510Copy full SHA for 23c9510
spmc/spmc.c
@@ -149,7 +149,7 @@ bool spmc_dequeue(spmc_ref_t spmc, uintptr_t *slot)
149
if (node != spmc->curr_enqueue)
150
atomic_compare_exchange_strong(
151
&spmc->curr_dequeue, &node,
152
- atomic_load_explicit(&node->next, memory_order_relaxed));
+ atomic_load_explicit(&node->next, memory_order_consume));
153
goto no_increment;
154
} else
155
*slot = node->buf[INDEX_OF(idx, node)];
0 commit comments