Re: [ovs-dev] [PATCH 03/18] lib/ovs-atomic: Add helpers for relaxed atomic access.

2014-08-28 Thread Ben Pfaff
On Fri, Aug 22, 2014 at 01:58:14PM -0700, Jarno Rajahalme wrote: > When an atomic variable is not serving to synchronize threads about > the state of other (atomic or non-atomic) variables, no memory barrier > is needed with the atomic operation. However, the default memory > order for an atomic o

[ovs-dev] [PATCH 03/18] lib/ovs-atomic: Add helpers for relaxed atomic access.

2014-08-22 Thread Jarno Rajahalme
When an atomic variable is not serving to synchronize threads about the state of other (atomic or non-atomic) variables, no memory barrier is needed with the atomic operation. However, the default memory order for an atomic operation is memory_order_seq_cst, which always causes a system-wide locki