Namespaces
Variants
Views
Actions

atomic_is_lock_free

From cppreference.com
< c‎ | atomic
Revision as of 21:35, 31 May 2013 by P12bot (Talk | contribs)

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.

Parameters

obj - pointer to the atomic object to inspect

Return value

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

See also

indicates that the given atomic type is lock-free
(macro constant) [edit]
C++ documentation for atomic_is_lock_free