Defined in header
_Bool atomic_is_lock_free( const volatile A* obj );
Determines if the atomic operations on all objects of the type
A (the type of the object pointed to by
obj) are lock-free. In any given program execution, the result of calling
atomic_is_lock_free is the same for all pointers of the same type.
This is a generic function defined for all atomic object types
A. The argument is pointer to a volatile atomic type to accept addresses of both non-volatile and volatile (e.g. memory-mapped I/O) atomic variables.
|obj||-||pointer to the atomic object to inspect|
 Return value
true if the the operations on all objects of the type
A are lock-free,
C11, as published, specified that this function is per-object, not per-type. This was corrected by DR 465.
- C11 standard (ISO/IEC 9899:2011):
- 188.8.131.52 The atomic_is_lock_free generic function (p: 280)
 See also
| indicates that the given atomic type is lock-free |
C++ documentation for atomic_is_lock_free