[ltt-dev] Userspace RCU library relicensed to LGPLv2.1

Jakub Jelinek jakub at redhat.com
Thu May 14 11:57:30 EDT 2009


On Thu, May 14, 2009 at 10:03:46AM -0400, Mathieu Desnoyers wrote:
> The gcc-friendly solution would be to add a 
> 
> type __sync_val_xchg(type *ptr, type value)
> 
> primitive to gcc atomic ops.

How would that be different from __sync_lock_test_and_set?
The only drawback is that __sync_lock_test_and_set? is not a full barrier,
but only an acquire barrier (though on i386/x86_64 and a bunch of other
targets it makes no difference at all).

	Jakub




More information about the lttng-dev mailing list