Namespaces
Variants
Views
Actions

std::atomic::atomic

From cppreference.com
< cpp‎ | atomic‎ | atomic
Revision as of 10:59, 23 September 2013 by P12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
(since C++11)
bool is_lock_free() const;
bool is_lock_free() const volatile;

Checks whether the atomic operations on the object are lock-free.

Contents

[edit] Parameters

(none)

[edit] Return value

true if the atomic operations on the object are lock-free, false otherwise.

[edit] Exceptions

noexcept specification:  
noexcept
  

[edit] See also

checks if the atomic type's operations are lock-free
(function template) [edit]