projects
/
userspace-rcu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83676f0
)
avoid multiple evaluation of STORE_SHARED argument
author
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 1 Mar 2010 19:06:01 +0000
(14:06 -0500)
committer
Mathieu Desnoyers
<mathieu.desnoyers@polymtl.ca>
Mon, 1 Mar 2010 19:06:01 +0000
(14:06 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/system.h
patch
|
blob
|
blame
|
history
diff --git
a/urcu/system.h
b/urcu/system.h
index e36a13baf51dc79a8ad9b31351a75a1c3ed775b6..0c3152f63f20f018df833c269efc0df531f3b682 100644
(file)
--- a/
urcu/system.h
+++ b/
urcu/system.h
@@
-46,9
+46,9
@@
*/
#define STORE_SHARED(x, v) \
({ \
-
_STORE_SHARED(x, v);
\
+
typeof(x) _v = _STORE_SHARED(x, v);
\
smp_wmc(); \
-
(v);
\
+
_v;
\
})
#endif /* _URCU_SYSTEM_H */
This page took
0.026548 seconds
and
4
git commands to generate.