projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cds_lfht_is_node_deleted parameter can be marked const
[userspace-rcu.git]
/
src
/
urcu-defer-impl.h
diff --git
a/src/urcu-defer-impl.h
b/src/urcu-defer-impl.h
index b2e1b3cab6c72428c138e45fb800ebdedd0e0a53..b34a1a17b11adabd9cc8da0aca6d030106889755 100644
(file)
--- a/
src/urcu-defer-impl.h
+++ b/
src/urcu-defer-impl.h
@@
-50,6
+50,7
@@
#include <urcu/system.h>
#include <urcu/tls-compat.h>
#include "urcu-die.h"
#include <urcu/system.h>
#include <urcu/tls-compat.h>
#include "urcu-die.h"
+#include "urcu-utils.h"
/*
* Number of entries in the per-thread defer queue. Must be power of 2.
/*
* Number of entries in the per-thread defer queue. Must be power of 2.
@@
-107,7
+108,7
@@
struct defer_queue {
};
/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
};
/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
-#include
"urcu-defer.h"
+#include
<urcu/defer.h>
void __attribute__((destructor)) rcu_defer_exit(void);
void __attribute__((destructor)) rcu_defer_exit(void);
@@
-126,7
+127,7
@@
static int32_t defer_thread_stop;
* Written to only by each individual deferer. Read by both the deferer and
* the reclamation tread.
*/
* Written to only by each individual deferer. Read by both the deferer and
* the reclamation tread.
*/
-static DEFINE_URCU_TLS
_IE
(struct defer_queue, defer_queue);
+static DEFINE_URCU_TLS(struct defer_queue, defer_queue);
static CDS_LIST_HEAD(registry_defer);
static pthread_t tid_defer;
static CDS_LIST_HEAD(registry_defer);
static pthread_t tid_defer;
@@
-264,6
+265,8
@@
void rcu_defer_barrier_thread(void)
_rcu_defer_barrier_thread();
mutex_unlock(&rcu_defer_mutex);
}
_rcu_defer_barrier_thread();
mutex_unlock(&rcu_defer_mutex);
}
+URCU_ATTR_ALIAS(urcu_stringify(rcu_defer_barrier_thread))
+void alias_rcu_defer_barrier_thread();
/*
* rcu_defer_barrier - Execute all queued rcu callbacks.
/*
* rcu_defer_barrier - Execute all queued rcu callbacks.
@@
-304,6
+307,8
@@
void rcu_defer_barrier(void)
end:
mutex_unlock(&rcu_defer_mutex);
}
end:
mutex_unlock(&rcu_defer_mutex);
}
+URCU_ATTR_ALIAS(urcu_stringify(rcu_defer_barrier))
+void alias_rcu_defer_barrier();
/*
* _defer_rcu - Queue a RCU callback.
/*
* _defer_rcu - Queue a RCU callback.
@@
-396,6
+401,7
@@
void defer_rcu(void (*fct)(void *p), void *p)
{
_defer_rcu(fct, p);
}
{
_defer_rcu(fct, p);
}
+URCU_ATTR_ALIAS(urcu_stringify(defer_rcu)) void alias_defer_rcu();
static void start_defer_thread(void)
{
static void start_defer_thread(void)
{
@@
-444,6
+450,8
@@
int rcu_defer_register_thread(void)
mutex_unlock(&defer_thread_mutex);
return 0;
}
mutex_unlock(&defer_thread_mutex);
return 0;
}
+URCU_ATTR_ALIAS(urcu_stringify(rcu_defer_register_thread))
+int alias_rcu_defer_register_thread();
void rcu_defer_unregister_thread(void)
{
void rcu_defer_unregister_thread(void)
{
@@
-462,10
+470,14
@@
void rcu_defer_unregister_thread(void)
stop_defer_thread();
mutex_unlock(&defer_thread_mutex);
}
stop_defer_thread();
mutex_unlock(&defer_thread_mutex);
}
+URCU_ATTR_ALIAS(urcu_stringify(rcu_defer_unregister_thread))
+void alias_rcu_defer_unregister_thread();
void rcu_defer_exit(void)
{
assert(cds_list_empty(®istry_defer));
}
void rcu_defer_exit(void)
{
assert(cds_list_empty(®istry_defer));
}
+URCU_ATTR_ALIAS(urcu_stringify(rcu_defer_exit))
+void alias_rcu_defer_exit();
#endif /* _URCU_DEFER_IMPL_H */
#endif /* _URCU_DEFER_IMPL_H */
This page took
0.023726 seconds
and
4
git commands to generate.