From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/c/atomic%2Fatomic_flag_clear.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 devdocs/c/atomic%2Fatomic_flag_clear.html (limited to 'devdocs/c/atomic%2Fatomic_flag_clear.html') diff --git a/devdocs/c/atomic%2Fatomic_flag_clear.html b/devdocs/c/atomic%2Fatomic_flag_clear.html new file mode 100644 index 00000000..a9afc72a --- /dev/null +++ b/devdocs/c/atomic%2Fatomic_flag_clear.html @@ -0,0 +1,22 @@ +

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

+

The argument is pointer to a volatile atomic flag to accept addresses of both non-volatile and volatile (e.g. memory-mapped I/O) atomic flags.

+

Parameters

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

Return value

(none)

+

References

See also

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

+ © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
+ https://en.cppreference.com/w/c/atomic/atomic_flag_clear +

+
-- cgit v1.2.3