atomic_is_lock_free - cppreference.com

##### 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_FREEATOMIC_CHAR_LOCK_FREEATOMIC_CHAR16_T_LOCK_FREEATOMIC_CHAR32_T_LOCK_FREEATOMIC_WCHAR_T_LOCK_FREEATOMIC_SHORT_LOCK_FREEATOMIC_INT_LOCK_FREEATOMIC_LONG_LOCK_FREEATOMIC_LLONG_LOCK_FREEATOMIC_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"