timeval: Preserve quiescence across time_poll().
[sliver-openvswitch.git] / lib / ovs-rcu.c
index 1843ef5..b3c434d 100644 (file)
@@ -134,6 +134,13 @@ ovsrcu_quiesce(void)
     ovsrcu_quiesced();
 }
 
+bool
+ovsrcu_is_quiescent(void)
+{
+    ovsrcu_init();
+    return pthread_getspecific(perthread_key) == NULL;
+}
+
 static void
 ovsrcu_synchronize(void)
 {
@@ -227,6 +234,7 @@ ovsrcu_call_postponed(void)
 static void *
 ovsrcu_postpone_thread(void *arg OVS_UNUSED)
 {
+    set_subprogram_name("urcu");
     pthread_detach(pthread_self());
 
     for (;;) {