static int init_done;
void __attribute__((constructor)) rcu_init(void);
-void __attribute__((destructor)) rcu_exit(void);
static DEFINE_URCU_TLS(int, rcu_signal_was_blocked);
#endif
+void __attribute__((destructor)) rcu_exit(void);
+static void urcu_call_rcu_exit(void);
+
/*
* rcu_gp_lock ensures mutual exclusion between threads calling
* synchronize_rcu().
urcu_die(errno);
}
+/*
+ * Don't unregister the SIGRCU signal handler anymore, because
+ * call_rcu threads could still be using it shortly before the
+ * application exits.
+ * Assertion disabled because call_rcu threads are now rcu
+ * readers, and left running at exit.
+ * urcu_posix_assert(cds_list_empty(®istry));
+ */
+
+#endif /* #ifdef RCU_SIGNAL */
+
void rcu_exit(void)
{
- /*
- * Don't unregister the SIGRCU signal handler anymore, because
- * call_rcu threads could still be using it shortly before the
- * application exits.
- * Assertion disabled because call_rcu threads are now rcu
- * readers, and left running at exit.
- * urcu_posix_assert(cds_list_empty(®istry));
- */
+ urcu_call_rcu_exit();
}
-#endif /* #ifdef RCU_SIGNAL */
-
DEFINE_RCU_FLAVOR(rcu_flavor);
#include "urcu-call-rcu-impl.h"
#include "urcu-defer-impl.h"
+#include "urcu-poll-impl.h"