summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2012-01-13 16:01:34 +0000
committered <ed@FreeBSD.org>2012-01-13 16:01:34 +0000
commit95aa25ca42e7d9e8ee4c7595a62dba8309587bec (patch)
tree675cdd00499fcf6f5dc8641109a034fe4e917615 /include
parent1d219ec710a2ecb30cd10629844c8ba61cbfc478 (diff)
downloadFreeBSD-src-95aa25ca42e7d9e8ee4c7595a62dba8309587bec.zip
FreeBSD-src-95aa25ca42e7d9e8ee4c7595a62dba8309587bec.tar.gz
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.
Diffstat (limited to 'include')
-rw-r--r--include/stdatomic.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/stdatomic.h b/include/stdatomic.h
index 1227d84..b58a73b 100644
--- a/include/stdatomic.h
+++ b/include/stdatomic.h
@@ -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_ */
OpenPOWER on IntegriCloud