Atomic operations library
If the macro constant __STDC_NO_ATOMICS__(C11) is defined by the compiler, the header <stdatomic.h>, the keyword _Atomic, and all of the names listed here are not provided.
Contents |
Types
| Defined in header
<stdatomic.h> | |
| (C11) |
defines memory ordering constraints (enum) |
| (C11) |
lock-free atomic boolean flag (struct) |
Macros
| Defined in header
<stdatomic.h> | |
| indicates that the given atomic type is lock-free (macro constant) | |
| (C11) |
initializes a new atomic_flag (macro constant) |
| (C11) |
initializes a new atomic object (function macro) |
| (C11) |
breaks a dependency chain for memory_order consume (function macro) |
Functions
| Defined in header
<stdatomic.h> | |
| sets an atomic_flag to true and returns the old value (function) | |
| sets an atomic_flag to false (function) | |
| (C11) |
initializes an existing atomic object (function) |
| (C11) |
indicates whether the atomic object is lock-free (function) |
| stores a value in an atomic object (function) | |
| reads a value from an atomic object (function) | |
| swaps a value with the value of an atomic object (function) | |
| swaps a value with the an atomic object if the old value is what is expected, otherwise reads the old value (function) | |
| atomic addition (function) | |
| atomic subtraction (function) | |
| atomic logical OR (function) | |
| atomic logical exclusive OR (function) | |
| atomic logical AND (function) | |
| (C11) |
generic memory order-dependent fence synchronization primitive (function) |
| (C11) |
fence between a thread and a signal handler executed in the same thread (function) |
Types
| This section is incomplete Reason: description |
Template:tdcl list hitem Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list end