projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename all memory primitives with prefix cmm_
[urcu.git]
/
urcu-qsbr-static.h
diff --git
a/urcu-qsbr-static.h
b/urcu-qsbr-static.h
index 147eb18b94357ee885216d3db65f252d54143944..108ef6e7181d58409b2314d0ea0551b211f8e76a 100644
(file)
--- a/
urcu-qsbr-static.h
+++ b/
urcu-qsbr-static.h
@@
-174,27
+174,27
@@
static inline void _rcu_read_unlock(void)
static inline void _rcu_quiescent_state(void)
{
static inline void _rcu_quiescent_state(void)
{
- smp_mb();
+ cmm_smp_mb();
_STORE_SHARED(rcu_reader.ctr, _LOAD_SHARED(rcu_gp_ctr));
_STORE_SHARED(rcu_reader.ctr, _LOAD_SHARED(rcu_gp_ctr));
-
smp_mb();
/* write rcu_reader.ctr before read futex */
+
cmm_smp_mb();
/* write rcu_reader.ctr before read futex */
wake_up_gp();
wake_up_gp();
- smp_mb();
+
cmm_
smp_mb();
}
static inline void _rcu_thread_offline(void)
{
}
static inline void _rcu_thread_offline(void)
{
- smp_mb();
+
cmm_
smp_mb();
STORE_SHARED(rcu_reader.ctr, 0);
STORE_SHARED(rcu_reader.ctr, 0);
-
smp_mb();
/* write rcu_reader.ctr before read futex */
+
cmm_smp_mb();
/* write rcu_reader.ctr before read futex */
wake_up_gp();
wake_up_gp();
-
barrier();
/* Ensure the compiler does not reorder us with mutex */
+
cmm_barrier();
/* Ensure the compiler does not reorder us with mutex */
}
static inline void _rcu_thread_online(void)
{
}
static inline void _rcu_thread_online(void)
{
-
barrier();
/* Ensure the compiler does not reorder us with mutex */
+
cmm_barrier();
/* Ensure the compiler does not reorder us with mutex */
_STORE_SHARED(rcu_reader.ctr, LOAD_SHARED(rcu_gp_ctr));
_STORE_SHARED(rcu_reader.ctr, LOAD_SHARED(rcu_gp_ctr));
- smp_mb();
+
cmm_
smp_mb();
}
#ifdef __cplusplus
}
#ifdef __cplusplus
This page took
0.023817 seconds
and
4
git commands to generate.