std::experimental::atomic_weak_ptr (3) - Linux Manuals

std::experimental::atomic_weak_ptr: std::experimental::atomic_weak_ptr

NAME

std::experimental::atomic_weak_ptr - std::experimental::atomic_weak_ptr

Synopsis


Defined in header <experimental/atomic>
template < class T > (concurrency TS)
class atomic_weak_ptr;


The class template atomic_weak_ptr provides thread-safe atomic pointer operations over a std::weak_ptr.

Member functions


                        constructs an atomic_weak_ptr object
constructor (public member function)
                        stores a value into an atomic_weak_ptr object
operator= (public member function)
                        checks if the atomic_weak_ptr object is lock-free
is_lock_free (public member function)
                        atomically replaces the value of the atomic object with a non-atomic argument
store (public member function)
                        atomically obtains the value of the atomic object
load (public member function)
                        loads a value from an atomic object
operator_weak_ptr<T> (public member function)
                        atomically replaces the value of the atomic object and obtains the value held previously
exchange (public member function)
                        atomically compares the value of the atomic object with non-atomic argument and performs atomic exchange if equal or atomic load if not
compare_exchange_weak (public member function)
compare_exchange_strong