projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
urcu lfstack: pop needs rcu read lock
[urcu.git]
/
urcu-defer.c
diff --git
a/urcu-defer.c
b/urcu-defer.c
index 696ccae77db6c691c1172a6cd7c8b4eac5a88c09..e2413028f1ebfb2aa4d288758a16d8ef6ca7f844 100644
(file)
--- a/
urcu-defer.c
+++ b/
urcu-defer.c
@@
-3,7
+3,7
@@
*
* Userspace RCU library - batch memory reclamation
*
*
* Userspace RCU library - batch memory reclamation
*
- * Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@
polymtl.ca
>
+ * Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@
efficios.com
>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@
-247,7
+247,7
@@
void _defer_rcu(void (*fct)(void *p), void *p)
* If queue is full, or reached threshold. Empty queue ourself.
* Worse-case: must allow 2 supplementary entries for fct pointer.
*/
* If queue is full, or reached threshold. Empty queue ourself.
* Worse-case: must allow 2 supplementary entries for fct pointer.
*/
- if (unlikely(
sync || (head - tail >= DEFER_QUEUE_SIZE - 2)
)) {
+ if (unlikely(
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.022399 seconds
and
4
git commands to generate.