Date: Sun, 25 Dec 2011 20:59:39 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r228880 - head/include Message-ID: <201112252059.pBPKxdtl075410@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112252059.pBPKxdtl075410>