|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <stdatomic.h> | ||
#define ATOMIC_BOOL_LOCK_FREE /* implementation-defined */ #define ATOMIC_CHAR_LOCK_FREE /* implementation-defined */ | (since C11) | |
#define ATOMIC_CHAR8_T_LOCK_FREE /* implementation-defined */ | (since C23) | |
Expands topreprocessor constant expressions that evaluate to either0,1, or2 which indicate the lock-free property of the correspondingatomic types (both signed and unsigned).
| Value | Explanation |
0 | The atomic type is never lock-free |
1 | The atomic type is sometimes lock-free |
2 | The atomic type is always lock-free |