ck_hp_fifo: Forgot load fence in last commit.

ck_pring
Samy Al Bahra 13 years ago
parent 319872ca8c
commit 7d6626131d

@ -135,6 +135,7 @@ ck_hp_fifo_dequeue_mpmc(ck_hp_record_t *record,
for (;;) {
head = ck_pr_load_ptr(&fifo->head);
ck_pr_fence_load();
tail = ck_pr_load_ptr(&fifo->tail);
ck_hp_set(record, 0, head);
ck_pr_fence_memory();
@ -169,6 +170,7 @@ ck_hp_fifo_trydequeue_mpmc(ck_hp_record_t *record,
struct ck_hp_fifo_entry *head, *tail, *next;
head = ck_pr_load_ptr(&fifo->head);
ck_pr_fence_load();
tail = ck_pr_load_ptr(&fifo->tail);
ck_hp_set(record, 0, head);
ck_pr_fence_memory();

Loading…
Cancel
Save