TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
Python
Tutorials
Reference
Articles
Forum
Reference
C library:
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
Python11
<cfenv> (fenv.h)
<cfloat> (float.h)
Python11
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
Python11
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
Python11
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
Python11
<ctgmath> (tgmath.h)
<ctime> (time.h)
Python11
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
Containers:
Python11
<array>
<deque>
Python11
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
Python11
<unordered_map>
Python11
<unordered_set>
<vector>
Input/Output:
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
Multi-threading:
Python11
<atomic>
Python11
<condition_variable>
Python11
<future>
Python11
<mutex>
Python11
<thread>
Other:
<algorithm>
<bitset>
Python11
<chrono>
Python11
<codecvt>
<complex>
<exception>
<functional>
Python11
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
Python11
<random>
Python11
<ratio>
Python11
<regex>
<stdexcept>
<string>
Python11
<system_error>
Python11
<tuple>
Python11
<type_traits>
Python11
<typeindex>
<typeinfo>
<utility>
<valarray>
<algorithm>
<bitset>
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
<cfloat> (float.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<complex>
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
<cstddef> (stddef.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
<ctime> (time.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
<deque>
<exception>
<fstream>
<functional>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<iterator>
<limits>
<list>
<locale>
<map>
<memory>
<new>
<numeric>
<ostream>
<queue>
<set>
<sstream>
<stack>
<stdexcept>
<streambuf>
<string>
<typeinfo>
<utility>
<valarray>
<vector>
Python11
<array>
Python11
<atomic>
Python11
<cfenv> (fenv.h)
Python11
<chrono>
Python11
<cinttypes> (inttypes.h)
Python11
<codecvt>
Python11
<condition_variable>
Python11
<cstdbool> (stdbool.h)
Python11
<cstdint> (stdint.h)
Python11
<ctgmath> (tgmath.h)
Python11
<cuchar> (uchar.h)
Python11
<forward_list>
Python11
<future>
Python11
<initializer_list>
Python11
<mutex>
Python11
<random>
Python11
<ratio>
Python11
<regex>
Python11
<system_error>
Python11
<thread>
Python11
<tuple>
Python11
<type_traits>
Python11
<typeindex>
Python11
<unordered_map>
Python11
<unordered_set>
<atomic>
classes
Python11
atomic
Python11
atomic_flag
enum types
Python11
memory_order
functions
Python11
atomic_signal_fence
Python11
atomic_thread_fence
Python11
kill_dependency
initialization macros
Python11
ATOMIC_FLAG_INIT
Python11
ATOMIC_VAR_INIT
functions (C-style atomics)
Python11
atomic_compare_exchange_strong
Python11
atomic_compare_exchange_strong_explicit
Python11
atomic_compare_exchange_weak
Python11
atomic_compare_exchange_weak_explicit
Python11
atomic_exchange
Python11
atomic_exchange_explicit
Python11
atomic_fetch_add
Python11
atomic_fetch_add_explicit
Python11
atomic_fetch_and
Python11
atomic_fetch_and_explicit
Python11
atomic_fetch_or
Python11
atomic_fetch_or_explicit
Python11
atomic_fetch_sub
Python11
atomic_fetch_sub_explicit
Python11
atomic_fetch_xor
Python11
atomic_fetch_xor_explicit
Python11
atomic_flag_clear
Python11
atomic_flag_clear_explicit
Python11
atomic_flag_test_and_set
Python11
atomic_flag_test_and_set_explicit
Python11
atomic_init
Python11
atomic_is_lock_free
Python11
atomic_load
Python11
atomic_load_explicit
Python11
atomic_store
Python11
atomic_store_explicit
Python11
ATOMIC_FLAG_INIT
Python11
ATOMIC_VAR_INIT
Python11
atomic
Python11
atomic_compare_exchange_strong
Python11
atomic_compare_exchange_strong_explicit
Python11
atomic_compare_exchange_weak
Python11
atomic_compare_exchange_weak_explicit
Python11
atomic_exchange
Python11
atomic_exchange_explicit
Python11
atomic_fetch_add
Python11
atomic_fetch_add_explicit
Python11
atomic_fetch_and
Python11
atomic_fetch_and_explicit
Python11
atomic_fetch_or
Python11
atomic_fetch_or_explicit
Python11
atomic_fetch_sub
Python11
atomic_fetch_sub_explicit
Python11
atomic_fetch_xor
Python11
atomic_fetch_xor_explicit
Python11
atomic_flag
Python11
atomic_flag_clear
Python11
atomic_flag_clear_explicit
Python11
atomic_flag_test_and_set
Python11
atomic_flag_test_and_set_explicit
Python11
atomic_init
Python11
atomic_is_lock_free
Python11
atomic_load
Python11
atomic_load_explicit
Python11
atomic_signal_fence
Python11
atomic_store
Python11
atomic_store_explicit
Python11
atomic_thread_fence
Python11
kill_dependency
Python11
memory_order
atomic
Python11
atomic::atomic
member functions
Python11
atomic::compare_exchange_strong
Python11
atomic::compare_exchange_weak
Python11
atomic::exchange
Python11
atomic::is_lock_free
Python11
atomic::load
Python11
atomic::operator T
Python11
atomic::operator=
Python11
atomic::store
member functions (spec.)
Python11
atomic::fetch_add
Python11
atomic::fetch_and
Python11
atomic::fetch_or
Python11
atomic::fetch_sub
Python11
atomic::fetch_xor
Python11
atomic::operator--
Python11
atomic::operator (comp. assign.)
Python11
atomic::operator++
Python11
atomic::atomic
Python11
atomic::compare_exchange_strong
Python11
atomic::compare_exchange_weak
Python11
atomic::exchange
Python11
atomic::fetch_add
Python11
atomic::fetch_and
Python11
atomic::fetch_or
Python11
atomic::fetch_sub
Python11
atomic::fetch_xor
Python11
atomic::is_lock_free
Python11
atomic::load
Python11
atomic::operator (comp. assign.)
Python11
atomic::operator T
Python11
atomic::operator++
Python11
atomic::operator--
Python11
atomic::operator=
Python11
atomic::store
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)