projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add static declarations
[userspace-rcu.git]
/
urcu.c
diff --git
a/urcu.c
b/urcu.c
index 39f5619773ba383b402fb1c536672af990129ed3..d474fc8a3e8311c036f151698afdeaab7bde192a 100644
(file)
--- a/
urcu.c
+++ b/
urcu.c
@@
-45,14
+45,14
@@
void urcu_init(void)
}
#endif
}
#endif
-int init_done;
+
static
int init_done;
-pthread_mutex_t urcu_mutex = PTHREAD_MUTEX_INITIALIZER;
+
static
pthread_mutex_t urcu_mutex = PTHREAD_MUTEX_INITIALIZER;
/*
* Global grace period counter.
* Contains the current RCU_GP_CTR_BIT.
/*
* Global grace period counter.
* Contains the current RCU_GP_CTR_BIT.
- * Also has a RCU_GP_C
TR_BI
T of 1, to accelerate the reader fast path.
+ * Also has a RCU_GP_C
OUN
T of 1, to accelerate the reader fast path.
* Written to only by writer with mutex taken. Read by both writer and readers.
*/
long urcu_gp_ctr = RCU_GP_COUNT;
* Written to only by writer with mutex taken. Read by both writer and readers.
*/
long urcu_gp_ctr = RCU_GP_COUNT;
@@
-81,7
+81,7
@@
static struct reader_registry *registry;
static char __thread need_mb;
static int num_readers, alloc_readers;
static char __thread need_mb;
static int num_readers, alloc_readers;
-void internal_urcu_lock(void)
+
static
void internal_urcu_lock(void)
{
int ret;
{
int ret;
@@
-108,7
+108,7
@@
void internal_urcu_lock(void)
#endif /* #else #ifndef DISTRUST_SIGNALS_EXTREME */
}
#endif /* #else #ifndef DISTRUST_SIGNALS_EXTREME */
}
-void internal_urcu_unlock(void)
+
static
void internal_urcu_unlock(void)
{
int ret;
{
int ret;
This page took
0.025642 seconds
and
4
git commands to generate.