projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s390 uatomic: short memory operand support for new compilers
[urcu.git]
/
urcu-defer.c
diff --git
a/urcu-defer.c
b/urcu-defer.c
index dd570713ee8234a82fa80208f612565c5028c112..b7b3c51f2c0eed98562b1a0b8c726c5daf30a3cc 100644
(file)
--- a/
urcu-defer.c
+++ b/
urcu-defer.c
@@
-244,10
+244,10
@@
void _defer_rcu(void (*fct)(void *p), void *p)
tail = LOAD_SHARED(defer_queue.tail);
/*
tail = LOAD_SHARED(defer_queue.tail);
/*
- * If queue is full,
empty it
ourself.
+ * If queue is full,
or reached threshold. Empty queue
ourself.
* Worse-case: must allow 2 supplementary entries for fct pointer.
*/
* Worse-case: must allow 2 supplementary entries for fct pointer.
*/
- if (unlikely(
head - tail >= DEFER_QUEUE_SIZE - 2
)) {
+ if (unlikely(
sync || (head - tail >= DEFER_QUEUE_SIZE - 2)
)) {
assert(head - tail <= DEFER_QUEUE_SIZE);
rcu_defer_barrier_thread();
assert(head - LOAD_SHARED(defer_queue.tail) == 0);
assert(head - tail <= DEFER_QUEUE_SIZE);
rcu_defer_barrier_thread();
assert(head - LOAD_SHARED(defer_queue.tail) == 0);
This page took
0.022531 seconds
and
4
git commands to generate.