Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MF9 r254783: Correct implementation of atomic_flag_test_and_set

Approved by:	re
  • Loading branch information...
commit 6111a723088866e805d5d3ea8f22f9553cfedd6c 1 parent ce4cae6
@emaste emaste authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  include/stdatomic.h
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.