projects
/
urcu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b257a10
)
fix wait_for_quiescent_state
author
Mathieu Desnoyers
<mathieu.desnoyers@polymtl.ca>
Fri, 6 Feb 2009 02:14:20 +0000
(21:14 -0500)
committer
Mathieu Desnoyers
<mathieu.desnoyers@polymtl.ca>
Fri, 6 Feb 2009 02:14:20 +0000
(21:14 -0500)
urcu.c
patch
|
blob
|
blame
|
history
diff --git
a/urcu.c
b/urcu.c
index ee79d1efc7b7a98f87f30a3f5de4abe9e7c822b3..232a57bb718fbf12be651cebd6a808b01976c924 100644
(file)
--- a/
urcu.c
+++ b/
urcu.c
@@
-101,7
+101,7
@@
void wait_for_quiescent_state(int parity)
/*
* BUSY-LOOP.
*/
- while (
*index->urcu_active_readers
!= 0)
+ while (
index->urcu_active_readers[parity]
!= 0)
barrier();
}
/*
@@
-134,8
+134,8
@@
void *urcu_publish_content(void **ptr, void *new)
*/
oldptr = *ptr;
*ptr = new;
- wmb(); /* Write ptr before changing the qparity */
/* All threads should read qparity before ptr */
+ /* Write ptr before changing the qparity */
force_mb_all_threads();
prev_parity = switch_next_urcu_qparity();
This page took
0.026668 seconds
and
4
git commands to generate.