The following patch will add the first external user. Signed-off-by: Jarno Rajahalme <jrajaha...@nicira.com> --- v3: No change.
lib/ovs-rcu.c | 3 +-- lib/ovs-rcu.h | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/ovs-rcu.c b/lib/ovs-rcu.c index 050a2ef..a052d6c 100644 --- a/lib/ovs-rcu.c +++ b/lib/ovs-rcu.c @@ -60,7 +60,6 @@ static void ovsrcu_flush_cbset(struct ovsrcu_perthread *); static void ovsrcu_unregister__(struct ovsrcu_perthread *); static bool ovsrcu_call_postponed(void); static void *ovsrcu_postpone_thread(void *arg OVS_UNUSED); -static void ovsrcu_synchronize(void); static struct ovsrcu_perthread * ovsrcu_perthread_get(void) @@ -153,7 +152,7 @@ ovsrcu_is_quiescent(void) return pthread_getspecific(perthread_key) == NULL; } -static void +void ovsrcu_synchronize(void) { unsigned int warning_threshold = 1000; diff --git a/lib/ovs-rcu.h b/lib/ovs-rcu.h index 366367c..2c7d1ea 100644 --- a/lib/ovs-rcu.h +++ b/lib/ovs-rcu.h @@ -203,4 +203,8 @@ void ovsrcu_quiesce_end(void); void ovsrcu_quiesce(void); bool ovsrcu_is_quiescent(void); +/* Synchronization. Waits for all non-quiescent threads to quiesce at least + * once. This can block for a relatively long time. */ +void ovsrcu_synchronize(void); + #endif /* ovs-rcu.h */ -- 1.7.10.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev