C++ Atomic Library - is_lock_free
Description
It is used to checks if the atomic type's operations are lock-free.
Declaration
Following is the declaration for std::atomic_is_lock_free.
template< class T > bool atomic_is_lock_free( const std::atomic<T>* obj );
C++11
template< class T > bool atomic_is_lock_free( const volatile std::atomic<T>* obj );
Parameters
obj − It is used in a pointer to the atomic object to examine.
Return Value
It returns true if *obj is a lock-free atomic, false otherwise.
Exceptions
No-noexcept − this member function never throws exceptions.
atomic.htm
Advertisements