atomic_flag_clear, atomic_flag_clear_explicit - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# atomic_flag_clear, atomic_flag_clear_explicit

From cppreference.com
< c‎ | atomic

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, the second version orders memory accesses according to `order`.

### [edit] Parameters

obj | - | pointer to the atomic flag object to modify
order | - | the memory synchronization ordering for this operation: all values are permitted

### [edit] Return value

(none)

### [edit] See also

atomic_flag_test_and_setatomic_flag_test_and_set_explicit (C11) | sets an atomic_flag to true and returns the old value (function) [edit]
C++ documentation for atomic_flag_clear, atomic_flag_clear_explicit

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/atomic/atomic_flag_clear&oldid=62491"