svn commit: r228880 - head/include
Ed Schouten
ed at FreeBSD.org
Sun Dec 25 20:59:40 UTC 2011
Author: ed
Date: Sun Dec 25 20:59:39 2011
New Revision: 228880
URL: http://svn.freebsd.org/changeset/base/228880
Log:
Fix field name.
The value field in the atomic structure is called __val; not value.
Modified:
head/include/stdatomic.h
Modified: head/include/stdatomic.h
==============================================================================
--- head/include/stdatomic.h Sun Dec 25 20:51:40 2011 (r228879)
+++ head/include/stdatomic.h Sun Dec 25 20:59:39 2011 (r228880)
@@ -214,7 +214,7 @@ typedef _Atomic(__uintmax_t) atomic_uin
#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
More information about the svn-src-all
mailing list