diff options
author | Ed Maste <emaste@FreeBSD.org> | 2013-08-24 13:58:17 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2013-08-24 13:58:17 +0000 |
commit | 71e454818c1d7b99dc5171c2b12317b00f971f39 (patch) | |
tree | c07201565f4cdabf503259d7aabcda4e25597bcf | |
parent | b6b4f514e15e1caffa0008b920c4fc49f5400a37 (diff) | |
download | src-71e454818c1d7b99dc5171c2b12317b00f971f39.tar.gz src-71e454818c1d7b99dc5171c2b12317b00f971f39.zip |
MF9 r254783: Correct implementation of atomic_flag_test_and_set
Approved by: re
Notes
Notes:
svn path=/releng/9.2/; revision=254785
-rw-r--r-- | include/stdatomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdatomic.h b/include/stdatomic.h index 35469e31456a..b661b2fe9e72 100644 --- a/include/stdatomic.h +++ b/include/stdatomic.h @@ -322,7 +322,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) |