diff options
author | marcel <marcel@FreeBSD.org> | 2002-11-16 17:05:06 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2002-11-16 17:05:06 +0000 |
commit | 448c522a41592e4428f041449236ea9cae62da5e (patch) | |
tree | b6338e19ceea921cd4469d68ea0cd64b12298d6b /Makefile | |
parent | 0f47f00a644da2af9b6cd625bb5b1c38a77a1463 (diff) | |
download | FreeBSD-src-448c522a41592e4428f041449236ea9cae62da5e.zip FreeBSD-src-448c522a41592e4428f041449236ea9cae62da5e.tar.gz |
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.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions