Share via


atomic::is_lock_free Method

Specifies whether atomic operations on *this are lock free.

bool is_lock_free() const volatile _NOEXCEPT;

Return Value

true if atomic operations on *this are lock free; otherwise, false.

Remarks

An atomic type is lock free if no atomic operations on that type use locks.

Requirements

Header: atomic

Namespace: std

See Also

Reference

<atomic>

atomic Structure

atomic_is_lock_free Function