Date: Sat, 24 Aug 2013 13:49:43 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r254783 - stable/9/include Message-ID: <201308241349.r7ODnh7w024411@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Sat Aug 24 13:49:43 2013 New Revision: 254783 URL: http://svnweb.freebsd.org/changeset/base/254783 Log: MFC r254465: Correct implementation of atomic_flag_test_and_set (This is a direct commit to stable/9 as atomic_flag_test_and_set_explicit is an inline function on HEAD and in a different file.) Modified: stable/9/include/stdatomic.h Modified: stable/9/include/stdatomic.h ============================================================================== --- stable/9/include/stdatomic.h Sat Aug 24 13:42:20 2013 (r254782) +++ stable/9/include/stdatomic.h Sat Aug 24 13:49:43 2013 (r254783) @@ -317,7 +317,7 @@ typedef atomic_bool atomic_flag; #define atomic_flag_clear_explicit(object, order) \ atomic_store_explicit(object, 0, order) #define atomic_flag_test_and_set_explicit(object, order) \ - atomic_compare_exchange_strong_explicit(object, 0, 1, order, order) + atomic_exchange_explicit(object, 1, order) #define atomic_flag_clear(object) \ atomic_flag_clear_explicit(object, memory_order_seq_cst)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308241349.r7ODnh7w024411>