Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jan 2012 16:01:34 +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: r230062 - head/include
Message-ID:  <201201131601.q0DG1YdV069295@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Fri Jan 13 16:01:34 2012
New Revision: 230062
URL: http://svn.freebsd.org/changeset/base/230062

Log:
  Correct mistake in atomic_flag macros.
  
  The _explicit versions only have two parameters, namely the object and
  the order. There is no need to pass the values of the atomic variable.

Modified:
  head/include/stdatomic.h

Modified: head/include/stdatomic.h
==============================================================================
--- head/include/stdatomic.h	Fri Jan 13 15:43:01 2012	(r230061)
+++ head/include/stdatomic.h	Fri Jan 13 16:01:34 2012	(r230062)
@@ -325,9 +325,8 @@ typedef atomic_bool			atomic_flag;
 	atomic_compare_exchange_strong_explicit(object, 0, 1, order, order)
 
 #define	atomic_flag_clear(object)					\
-	atomic_flag_clear_explicit(object, 0, memory_order_seq_cst)
+	atomic_flag_clear_explicit(object, memory_order_seq_cst)
 #define	atomic_flag_test_and_set(object)				\
-	atomic_flag_test_and_set_explicit(object, 0, 1,			\
-	    memory_order_seq_cst, memory_order_seq_cst)
+	atomic_flag_test_and_set_explicit(object, memory_order_seq_cst)
 
 #endif /* !_STDATOMIC_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201131601.q0DG1YdV069295>