##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# atomic_is_lock_free

From cppreference.com
< c‎ | atomic

Defined in header `<stdatomic.h>` |  |
_Bool atomic_is_lock_free( const volatile A* obj ); |  | (since C11)

Determines if the atomic object pointed to by `obj` is implemented lock-free.

This is a generic function defined for all atomic object types. `A` is the type of an atomic object.

### [edit] Parameters

obj | - | pointer to the atomic object to inspect

### [edit] Return value

true if the atomic object is lock-free, `false` otherwise.

### [edit] See also

ATOMIC_BOOL_LOCK_FREE ATOMIC_CHAR_LOCK_FREE ATOMIC_CHAR16_T_LOCK_FREE ATOMIC_CHAR32_T_LOCK_FREE ATOMIC_WCHAR_T_LOCK_FREE ATOMIC_SHORT_LOCK_FREE ATOMIC_INT_LOCK_FREE ATOMIC_LONG_LOCK_FREE ATOMIC_LLONG_LOCK_FREE ATOMIC_POINTER_LOCK_FREE (C11) | indicates that the given atomic type is lock-free (macro constant) [edit]
C++ documentation for atomic_is_lock_free

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