Search:
Reference
<atomic>
atomic
is_lock_free
public member function
<atomic>
std::
atomic
::is_lock_free
bool is_lock_free() const volatile noexcept; bool is_lock_free() const noexcept;
Is lock-free
Indicates whether the object is
lock-free
.
A
lock-free
object does not cause other threads to be
blocked
when accessed (possibly using some sort of
transactional memory
for the type).
The value returned by this function is consistent with the values returned for all other objects of the same type.
Parameters
none
Return value
true
if the object is
lock-free
.
Data races
No data races are initiated by calling this member function.
Exception safety
No-throw guarantee:
never throws exceptions.
See also
atomic_is_lock_free
Is lock-free
(function )
C++
Information
Tutorials
Reference
Articles
Forum
Reference
C library:
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
<cfenv> (fenv.h)
<cfloat> (float.h)
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
<ctgmath> (tgmath.h)
<ctime> (time.h)
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
Containers:
<array>
<deque>
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
<unordered_map>
<unordered_set>
<vector>
Input/Output:
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
Multi-threading:
<atomic>
<condition_variable>
<future>
<mutex>
<thread>
Other:
<algorithm>
<bitset>
<chrono>
<codecvt>
<complex>
<exception>
<functional>
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
<random>
<ratio>
<regex>
<stdexcept>
<string>
<system_error>
<tuple>
<type_traits>
<typeindex>
<typeinfo>
<utility>
<valarray>
<atomic>
classes:
atomic
atomic_flag
enum types:
memory_order
functions:
atomic_signal_fence
atomic_thread_fence
kill_dependency
initialization macros:
ATOMIC_FLAG_INIT
ATOMIC_VAR_INIT
functions (C-style atomics):
atomic_compare_exchange_strong
atomic_compare_exchange_strong_explicit
atomic_compare_exchange_weak
atomic_compare_exchange_weak_explicit
atomic_exchange
atomic_exchange_explicit
atomic_fetch_add
atomic_fetch_add_explicit
atomic_fetch_and
atomic_fetch_and_explicit
atomic_fetch_or
atomic_fetch_or_explicit
atomic_fetch_sub
atomic_fetch_sub_explicit
atomic_fetch_xor
atomic_fetch_xor_explicit
atomic_flag_clear
atomic_flag_clear_explicit
atomic_flag_test_and_set
atomic_flag_test_and_set_explicit
atomic_init
atomic_is_lock_free
atomic_load
atomic_load_explicit
atomic_store
atomic_store_explicit
atomic
atomic::atomic
member functions:
atomic::compare_exchange_strong
atomic::compare_exchange_weak
atomic::exchange
atomic::is_lock_free
atomic::load
atomic::operator T
atomic::operator=
atomic::store
member functions (spec.):
atomic::fetch_add
atomic::fetch_and
atomic::fetch_or
atomic::fetch_sub
atomic::fetch_xor
atomic::operator--
atomic::operator (comp. assign.)
atomic::operator++