Re: [ovs-dev] [PATCH V2] ovs-thread: Implement OVS specific barrier.

2014-06-13 Thread Alex Wang
Thx for the review, applied to master. On Fri, Jun 13, 2014 at 10:48 AM, Ben Pfaff wrote: > 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 tho

Re: [ovs-dev] [PATCH V2] ovs-thread: Implement OVS specific barrier.

2014-06-13 Thread Ben Pfaff
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 wr

[ovs-dev] [PATCH V2] ovs-thread: Implement OVS specific barrier.

2014-06-09 Thread Alex Wang
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