[ovs-dev] [PATCH v2 2/3] lib/ovs-thread: Use atomic_count.
Ben Pfaff
blp at nicira.com
Fri Aug 29 21:38:58 UTC 2014
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().
>
> Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
> ---
> v2: Do not seq_read again after seq_change, as we know the value changed.
Acked-by: Ben Pfaff <blp at nicira.com>
More information about the dev
mailing list