Fix field name.

The value field in the atomic structure is called __val; not value.
This commit is contained in:
Ed Schouten 2011-12-25 20:59:39 +00:00
parent 367bebd402
commit d9171fdcc9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228880

View File

@ -214,7 +214,7 @@ typedef _Atomic(__uintmax_t) atomic_uintmax_t;
#if __has_builtin(__sync_swap)
/* Clang provides a full-barrier atomic exchange - use it if available. */
#define atomic_exchange_explicit(object, desired, order) \
__sync_swap(&(object)->value, desired)
__sync_swap(&(object)->__val, desired)
#else
/*
* __sync_lock_test_and_set() is only an acquire barrier in theory (although in