Re: [ovs-dev] [PATCH v2 2/3] lib/ovs-thread: Use atomic_count.

2014-08-29 Thread Ben Pfaff
On Fri, Aug 29, 2014 at 02:10:43PM -0700, Jarno Rajahalme wrote: > barrier->count is used as a simple counter and is not expected the > synchronize the state of any other variable, so we can use atomic_count, > which uses relaxed atomics. > > Ditto for the 'next_id' within ovsthread_wrapper(). >

[ovs-dev] [PATCH v2 2/3] lib/ovs-thread: Use atomic_count.

2014-08-29 Thread Jarno Rajahalme
barrier->count is used as a simple counter and is not expected the synchronize the state of any other variable, so we can use atomic_count, which uses relaxed atomics. Ditto for the 'next_id' within ovsthread_wrapper(). Signed-off-by: Jarno Rajahalme --- v2: Do not seq_read again after seq_chang