On Mon, Jun 09, 2014 at 02:28:44PM -0700, Alex Wang wrote: > Non-leader revalidator thread uses pthread_barrier_* functions in their > main loop to synchronize with leader thread. However, since those threads > only call poll_block() intermittently, the poll interval check in > poll_block() can wrongly take the time since last call as poll interval > and issue the following warnings: > > "Unreasonably long XXXXms poll interval". > > To prevent it, this commit implements the barrier struct and operations > for OVS which allow thread to block on barrier via poll_block(). > > Signed-off-by: Alex Wang <al...@nicira.com> > > --- > PATCH -> V2: > - change the name of ovs_barrier_wait() to ovs_barrier_block(). > - add comment to each barrier funciton.
Acked-by: Ben Pfaff <b...@nicira.com> _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev