projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid calling caa_container_of on NULL pointer in cds_lfht macros
[urcu.git]
/
include
/
urcu
/
urcu-bp.h
diff --git
a/include/urcu/urcu-bp.h
b/include/urcu/urcu-bp.h
index d3d122d0f71df610a0276af0e3e5043a6adf4ee7..7eefa0ea70e2eb832e712338890db1e7d4710798 100644
(file)
--- a/
include/urcu/urcu-bp.h
+++ b/
include/urcu/urcu-bp.h
@@
-36,10
+36,7
@@
#include <stdlib.h>
#include <pthread.h>
#include <stdlib.h>
#include <pthread.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include <stdbool.h>
#include <urcu/map/urcu-bp.h>
#include <urcu/map/urcu-bp.h>
@@
-56,6
+53,11
@@
extern "C" {
* publication headers.
*/
#include <urcu/pointer.h>
* publication headers.
*/
#include <urcu/pointer.h>
+#include <urcu/urcu-poll.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
#ifdef _LGPL_SOURCE
#ifdef _LGPL_SOURCE
@@
-140,6
+142,12
@@
extern void *urcu_bp_set_pointer_sym(void **p, void *v);
extern void urcu_bp_synchronize_rcu(void);
extern void urcu_bp_synchronize_rcu(void);
+/*
+ * RCU grace period polling API.
+ */
+extern struct urcu_gp_poll_state urcu_bp_start_poll_synchronize_rcu(void);
+extern bool urcu_bp_poll_state_synchronize_rcu(struct urcu_gp_poll_state state);
+
/*
* urcu_bp_before_fork, urcu_bp_after_fork_parent and urcu_bp_after_fork_child
* should be called around fork() system calls when the child process is not
/*
* urcu_bp_before_fork, urcu_bp_after_fork_parent and urcu_bp_after_fork_child
* should be called around fork() system calls when the child process is not
@@
-151,12
+159,14
@@
extern void urcu_bp_after_fork_parent(void);
extern void urcu_bp_after_fork_child(void);
/*
extern void urcu_bp_after_fork_child(void);
/*
- * In the bulletproof version, the following functions are no-ops.
+ * In the bulletproof version, thread registration is performed lazily,
+ * but it can be forced by issuing an explicit urcu_bp_register_thread().
*/
*/
-static inline void urcu_bp_register_thread(void)
-{
-}
+extern void urcu_bp_register_thread(void);
+/*
+ * In the bulletproof version, the following functions are no-ops.
+ */
static inline void urcu_bp_unregister_thread(void)
{
}
static inline void urcu_bp_unregister_thread(void)
{
}
This page took
0.02397 seconds
and
4
git commands to generate.