[ovs-dev] [PATCH 06/18] lib/ovs-thread: Use atomic_count.
blp at nicira.com
Thu Aug 28 16:32:31 UTC 2014
On Fri, Aug 22, 2014 at 01:58:17PM -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().
> Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
I would have thought that ovs_barrier_block() would include a fairly
strong barrier--at least an acquire-release barrier?--but it doesn't
seem to necessarily include one at all now.
More information about the dev