projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: cast poll delay return value to void
[urcu.git]
/
urcu-defer.h
diff --git
a/urcu-defer.h
b/urcu-defer.h
index 75b600568bc7a2df852cb246e1a300732c6989b8..3710081cd06a20d796eee3d5cfb8deea83204b27 100644
(file)
--- a/
urcu-defer.h
+++ b/
urcu-defer.h
@@
-6,7
+6,7
@@
*
* Userspace RCU header - deferred execution
*
*
* Userspace RCU header - deferred execution
*
- * Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@
polymtl.ca
>
+ * Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@
efficios.com
>
* Copyright (c) 2009 Paul E. McKenney, IBM Corporation.
*
* LGPL-compatible code should include this header with :
* Copyright (c) 2009 Paul E. McKenney, IBM Corporation.
*
* LGPL-compatible code should include this header with :
@@
-32,7
+32,14
@@
#include <stdlib.h>
#include <pthread.h>
#include <stdlib.h>
#include <pthread.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
/*
+ * Note: the defer_rcu() API is currently EXPERIMENTAL. It may change in the
+ * future.
+ *
* Important !
*
* Each thread queuing memory reclamation must be registered with
* Important !
*
* Each thread queuing memory reclamation must be registered with
@@
-43,17
+50,18
@@
* primitive need to call synchronize_rcu() if the thread queue is full.
*/
* primitive need to call synchronize_rcu() if the thread queue is full.
*/
-#define defer_rcu(fct, p) defer_rcu_ratelimit(fct, p, NULL)
-
-extern void defer_rcu_ratelimit(void (*fct)(void *p), void *p,
- int (*rl)(void *p));
+extern void defer_rcu(void (*fct)(void *p), void *p);
/*
* Thread registration for reclamation.
*/
/*
* Thread registration for reclamation.
*/
-extern
void
rcu_defer_register_thread(void);
+extern
int
rcu_defer_register_thread(void);
extern void rcu_defer_unregister_thread(void);
extern void rcu_defer_barrier(void);
extern void rcu_defer_barrier_thread(void);
extern void rcu_defer_unregister_thread(void);
extern void rcu_defer_barrier(void);
extern void rcu_defer_barrier_thread(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _URCU_BATCH_H */
#endif /* _URCU_BATCH_H */
This page took
0.022916 seconds
and
4
git commands to generate.