X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Fwfstack-static.h;h=eed83da334a173fa4e3a0d062c89463473ebfb94;hp=cecdde1c6551b42e65ac6d2543755dae08c7ed5a;hb=6cf3827cf5809fbcee555fb08286ad756be42dad;hpb=e040d717e072d02835605f7b5ff623cd6a123b7a diff --git a/urcu/wfstack-static.h b/urcu/wfstack-static.h index cecdde1..eed83da 100644 --- a/urcu/wfstack-static.h +++ b/urcu/wfstack-static.h @@ -67,7 +67,7 @@ void _cds_wfs_push(struct cds_wfs_stack *s, struct cds_wfs_node *node) * At this point, dequeuers see a NULL node->next, they should busy-wait * until node->next is set to old_head. */ - CAA_STORE_SHARED(node->next, old_head); + CMM_STORE_SHARED(node->next, old_head); } /* @@ -80,13 +80,13 @@ ___cds_wfs_pop_blocking(struct cds_wfs_stack *s) int attempt = 0; retry: - head = CAA_LOAD_SHARED(s->head); + head = CMM_LOAD_SHARED(s->head); if (head == CDS_WF_STACK_END) return NULL; /* * Adaptative busy-looping waiting for push to complete. */ - while ((next = CAA_LOAD_SHARED(head->next)) == NULL) { + while ((next = CMM_LOAD_SHARED(head->next)) == NULL) { if (++attempt >= CDS_WFS_ADAPT_ATTEMPTS) { poll(NULL, 0, CDS_WFS_WAIT); /* Wait for 10ms */ attempt = 0;