timeval: Preserve quiescence across time_poll().
[sliver-openvswitch.git] / lib / ovs-rcu.c
index 269f51b..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)
 {