projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: call rcu should call internal RCU API
[userspace-rcu.git]
/
urcu-bp.c
diff --git
a/urcu-bp.c
b/urcu-bp.c
index 7c573d6ec1f7624328018dfc19313a5d6e964a3f..7a591a20da3ac8a58adc8c1ca1c0ffbf982350fe 100644
(file)
--- a/
urcu-bp.c
+++ b/
urcu-bp.c
@@
-97,7
+97,7
@@
int rcu_bp_refcount;
static
void __attribute__((constructor)) rcu_bp_init(void);
static
static
void __attribute__((constructor)) rcu_bp_init(void);
static
-void __attribute__((destructor)) rcu_bp_exit(void);
+void __attribute__((destructor))
_
rcu_bp_exit(void);
static pthread_mutex_t rcu_gp_lock = PTHREAD_MUTEX_INITIALIZER;
static pthread_mutex_t rcu_gp_lock = PTHREAD_MUTEX_INITIALIZER;
@@
-519,7
+519,7
@@
void rcu_bp_unregister(struct rcu_reader *rcu_reader_reg)
ret = pthread_sigmask(SIG_SETMASK, &oldmask, NULL);
if (ret)
abort();
ret = pthread_sigmask(SIG_SETMASK, &oldmask, NULL);
if (ret)
abort();
- rcu_bp_exit();
+
_
rcu_bp_exit();
}
/*
}
/*
@@
-549,7
+549,7
@@
void rcu_bp_init(void)
}
static
}
static
-void rcu_bp_exit(void)
+void
_
rcu_bp_exit(void)
{
mutex_lock(&init_lock);
if (!--rcu_bp_refcount) {
{
mutex_lock(&init_lock);
if (!--rcu_bp_refcount) {
@@
-568,6
+568,15
@@
void rcu_bp_exit(void)
mutex_unlock(&init_lock);
}
mutex_unlock(&init_lock);
}
+/*
+ * Keep ABI compability within stable versions. This has never been
+ * exposed through a header, but needs to stay in the .so until the
+ * soname is bumped.
+ */
+void rcu_bp_exit(void)
+{
+}
+
/*
* Holding the rcu_gp_lock across fork will make sure we fork() don't race with
* a concurrent thread executing with this same lock held. This ensures that the
/*
* Holding the rcu_gp_lock across fork will make sure we fork() don't race with
* a concurrent thread executing with this same lock held. This ensures that the
This page took
0.031314 seconds
and
4
git commands to generate.