std::experimental::atomic_shared_ptr (3) - Linux Man Pages

std::experimental::atomic_shared_ptr: std::experimental::atomic_shared_ptr

NAME

std::experimental::atomic_shared_ptr - std::experimental::atomic_shared_ptr

Synopsis


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


The class template atomic_shared_ptr provides thread-safe atomic pointer operations over a std::shared_ptr. It provides a better alternative to the_non-member_shared_ptr_atomic_access_functions.

Member functions


                        constructs an atomic_shared_ptr object
constructor (public member function)
                        stores a value into an atomic_shared_ptr object
operator= (public member function)
                        checks if the atomic_shared_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_shared_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