urcu-memb,mb,signal: Implement grace period polling
[urcu.git] / include / urcu / urcu-qsbr.h
index 041db21beafa47deb490d1745b3663e7be762f6a..5c5a0304211683e1eda0b4a022690ff4bb7e535d 100644 (file)
 
 #include <stdlib.h>
 #include <pthread.h>
+#include <stdbool.h>
+
+#include <urcu/config.h>
 
 /*
- * See urcu-pointer.h and urcu/static/urcu-pointer.h for pointer
+ * See urcu/pointer.h and urcu/static/pointer.h for pointer
  * publication headers.
  */
-#include <urcu-pointer.h>
+#include <urcu/pointer.h>
+#include <urcu/urcu-poll.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -123,6 +127,12 @@ extern void urcu_qsbr_thread_online(void);
 
 extern void urcu_qsbr_synchronize_rcu(void);
 
+/*
+ * RCU grace period polling API.
+ */
+extern struct urcu_gp_poll_state urcu_qsbr_start_poll_synchronize_rcu(void);
+extern bool urcu_qsbr_poll_state_synchronize_rcu(struct urcu_gp_poll_state state);
+
 /*
  * Reader thread registration.
  */
@@ -133,9 +143,9 @@ extern void urcu_qsbr_unregister_thread(void);
 }
 #endif
 
-#include <urcu-call-rcu.h>
-#include <urcu-defer.h>
-#include <urcu-flavor.h>
+#include <urcu/call-rcu.h>
+#include <urcu/defer.h>
+#include <urcu/flavor.h>
 
 #ifndef URCU_API_MAP
 #include <urcu/map/clear.h>
This page took 0.023752 seconds and 4 git commands to generate.