ck_fifo: Do not forget about node recycling.

ck_pring
Samy Al Bahra 12 years ago
parent 2d2b49a313
commit 7530ca21b7

@ -144,7 +144,7 @@ ck_fifo_spsc_dequeue(struct ck_fifo_spsc *fifo, void *value)
/* If entry is visible, guarantee store to value is visible. */ /* If entry is visible, guarantee store to value is visible. */
ck_pr_fence_load(); ck_pr_fence_load();
ck_pr_store_ptr(value, entry->value); ck_pr_store_ptr(value, entry->value);
fifo->head = entry; ck_pr_store_ptr(&fifo->head, entry);
return (true); return (true);
} }

Loading…
Cancel
Save