atomic_flag_clear
atomic_flag_clear, atomic_flag_clear_explicit
Defined in header <stdatomic.h> | ||
---|---|---|
void atomic_flag_clear( volatile atomic_flag* obj ); | (1) | (since C11) |
void atomic_flag_clear_explicit( volatile atomic_flag* obj, memory_order order ); | (2) | (since C11) |
Atomically changes the state of a atomic_flag
pointed to by obj
to clear (false
). The first version orders memory accesses according to memory_order_seq_cst