projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arm: remove useless declarations
[urcu.git]
/
urcu
/
wfstack-static.h
diff --git
a/urcu/wfstack-static.h
b/urcu/wfstack-static.h
index cecdde1c6551b42e65ac6d2543755dae08c7ed5a..ff18c4a3f213214188ef6bfe6f6c98a795132bab 100644
(file)
--- a/
urcu/wfstack-static.h
+++ b/
urcu/wfstack-static.h
@@
-28,6
+28,7
@@
#include <pthread.h>
#include <assert.h>
#include <pthread.h>
#include <assert.h>
+#include <poll.h>
#include <urcu/compiler.h>
#include <urcu/uatomic_arch.h>
#include <urcu/compiler.h>
#include <urcu/uatomic_arch.h>
@@
-67,7
+68,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.
*/
* At this point, dequeuers see a NULL node->next, they should busy-wait
* until node->next is set to old_head.
*/
- C
AA
_STORE_SHARED(node->next, old_head);
+ C
MM
_STORE_SHARED(node->next, old_head);
}
/*
}
/*
@@
-80,13
+81,13
@@
___cds_wfs_pop_blocking(struct cds_wfs_stack *s)
int attempt = 0;
retry:
int attempt = 0;
retry:
- head = C
AA
_LOAD_SHARED(s->head);
+ head = C
MM
_LOAD_SHARED(s->head);
if (head == CDS_WF_STACK_END)
return NULL;
/*
* Adaptative busy-looping waiting for push to complete.
*/
if (head == CDS_WF_STACK_END)
return NULL;
/*
* Adaptative busy-looping waiting for push to complete.
*/
- while ((next = C
AA
_LOAD_SHARED(head->next)) == NULL) {
+ while ((next = C
MM
_LOAD_SHARED(head->next)) == NULL) {
if (++attempt >= CDS_WFS_ADAPT_ATTEMPTS) {
poll(NULL, 0, CDS_WFS_WAIT); /* Wait for 10ms */
attempt = 0;
if (++attempt >= CDS_WFS_ADAPT_ATTEMPTS) {
poll(NULL, 0, CDS_WFS_WAIT); /* Wait for 10ms */
attempt = 0;
This page took
0.026863 seconds
and
4
git commands to generate.