Namespaces
Variants
Views
Actions

atomic_is_lock_free

From cppreference.com
< c‎ | atomic
Revision as of 23:25, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <stdatomic.h>
</td>

<td></td> <td></td> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
_Bool atomic_is_lock_free( const volatile A* obj );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C11) </td> </tr> Template:ddcl list end

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

Template:c/atomic/dcl list ATOMIC LOCK FREE consts
C++ documentation for atomic_is_lock_free