- head = atomic_load(&q->head);
- tail = atomic_load(&q->tail);
- next = atomic_load(&q->nodes[get_ptr(head)].next);
- if (atomic_load(&q->head) == head) {
+ head = atomic_load_explicit(&q->head, relaxed);
+ tail = atomic_load_explicit(&q->tail, relaxed);
+ next = atomic_load_explicit(&q->nodes[get_ptr(head)].next, acquire);
+ if (atomic_load_explicit(&q->head, relaxed) == head) {