freebsd-skq/lib/libc_r/arch
marcel 448c522a41 Implement the lock with a cmpxchg instruction instead of a xchg.
Both are atomic, but the cmpxchg has memory ordering hints. We
give this acquire semantics.

NOTE: The unlock in libc_r is implemented by a "normal" assign
statement. This is not correct on ia64 due to the memory ordering
characteristics of the architecture. We need release semantics
for an unlock.
2002-11-16 17:05:06 +00:00
..
alpha
amd64
i386
ia64 Implement the lock with a cmpxchg instruction instead of a xchg. 2002-11-16 17:05:06 +00:00