Namespaces
Variants
Views
Actions

atomic_is_lock_free

From cppreference.com
< c‎ | atomic
Revision as of 16:22, 1 July 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

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