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
/
wfqueue-static.h
diff --git
a/urcu/wfqueue-static.h
b/urcu/wfqueue-static.h
index 0f7e68f7a40fea14b208708ae9bd7425b79d35b2..d0db3fc616dc00f21e43b8c1dbd4e376f5f8ff5e 100644
(file)
--- a/
urcu/wfqueue-static.h
+++ b/
urcu/wfqueue-static.h
@@
-79,7
+79,7
@@
void _wfq_enqueue(struct wfq_queue *q, struct wfq_node *node)
* that the queue is being appended to. The following store will append
* "node" to the queue from a dequeuer perspective.
*/
* that the queue is being appended to. The following store will append
* "node" to the queue from a dequeuer perspective.
*/
- STORE_SHARED(*old_tail, node);
+
CAA_
STORE_SHARED(*old_tail, node);
}
/*
}
/*
@@
-99,19
+99,19
@@
___wfq_dequeue_blocking(struct wfq_queue *q)
/*
* Queue is empty if it only contains the dummy node.
*/
/*
* Queue is empty if it only contains the dummy node.
*/
- if (q->head == &q->dummy && LOAD_SHARED(q->tail) == &q->dummy.next)
+ if (q->head == &q->dummy &&
CAA_
LOAD_SHARED(q->tail) == &q->dummy.next)
return NULL;
node = q->head;
/*
* Adaptative busy-looping waiting for enqueuer to complete enqueue.
*/
return NULL;
node = q->head;
/*
* Adaptative busy-looping waiting for enqueuer to complete enqueue.
*/
- while ((next = LOAD_SHARED(node->next)) == NULL) {
+ while ((next =
CAA_
LOAD_SHARED(node->next)) == NULL) {
if (++attempt >= WFQ_ADAPT_ATTEMPTS) {
poll(NULL, 0, WFQ_WAIT); /* Wait for 10ms */
attempt = 0;
} else
if (++attempt >= WFQ_ADAPT_ATTEMPTS) {
poll(NULL, 0, WFQ_WAIT); /* Wait for 10ms */
attempt = 0;
} else
- cpu_relax();
+ c
aa_c
pu_relax();
}
/*
* Move queue head forward.
}
/*
* Move queue head forward.
This page took
0.02428 seconds
and
4
git commands to generate.