projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename all arch primitives with prefix caa_
[urcu.git]
/
urcu
/
wfstack-static.h
diff --git
a/urcu/wfstack-static.h
b/urcu/wfstack-static.h
index 3f44743461ab1317c069829132e399fbc88d48eb..0acb4f0a3894cf77f0efb6795c40a11356f7ce52 100644
(file)
--- a/
urcu/wfstack-static.h
+++ b/
urcu/wfstack-static.h
@@
-67,7
+67,7
@@
void _wfs_push(struct wfs_stack *s, struct wfs_node *node)
* At this point, dequeuers see a NULL node->next, they should busy-wait
* until node->next is set to old_head.
*/
* At this point, dequeuers see a NULL node->next, they should busy-wait
* until node->next is set to old_head.
*/
- STORE_SHARED(node->next, old_head);
+
CAA_
STORE_SHARED(node->next, old_head);
}
/*
}
/*
@@
-80,18
+80,18
@@
___wfs_pop_blocking(struct wfs_stack *s)
int attempt = 0;
retry:
int attempt = 0;
retry:
- head = LOAD_SHARED(s->head);
+ head =
CAA_
LOAD_SHARED(s->head);
if (head == WF_STACK_END)
return NULL;
/*
* Adaptative busy-looping waiting for push to complete.
*/
if (head == WF_STACK_END)
return NULL;
/*
* Adaptative busy-looping waiting for push to complete.
*/
- while ((next = LOAD_SHARED(head->next)) == NULL) {
+ while ((next =
CAA_
LOAD_SHARED(head->next)) == NULL) {
if (++attempt >= WFS_ADAPT_ATTEMPTS) {
poll(NULL, 0, WFS_WAIT); /* Wait for 10ms */
attempt = 0;
} else
if (++attempt >= WFS_ADAPT_ATTEMPTS) {
poll(NULL, 0, WFS_WAIT); /* Wait for 10ms */
attempt = 0;
} else
- cpu_relax();
+ c
aa_c
pu_relax();
}
if (uatomic_cmpxchg(&s->head, head, next) == head)
return head;
}
if (uatomic_cmpxchg(&s->head, head, next) == head)
return head;
This page took
0.022837 seconds
and
4
git commands to generate.