Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::experi..._shared_ptr(3)  C++ Standard Libary std::experi..._shared_ptr(3)

NAME
       std::experimental::atomic_shared_ptr	     -	       std::experimen-
       tal::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
	  constructor		  constructs an	atomic_shared_ptr object
				  (public member function)
	  operator=		  stores a value into an atomic_shared_ptr ob-
       ject
				  (public member function)
	  is_lock_free		   checks  if  the atomic_shared_ptr object is
       lock-free
				  (public member function)
				  atomically replaces the value	of the	atomic
       object with a
	  store			  non-atomic argument
				  (public member function)
	  load			   atomically  obtains the value of the	atomic
       object
				  (public member function)
	  operator shared_ptr<T>  loads	a value	from an	atomic object
				  (public member function)
				  atomically replaces the value	of the	atomic
       object and
	  exchange		  obtains the value held previously
				  (public member function)
				  atomically  compares the value of the	atomic
       object with
	  compare_exchange_weak	  non-atomic argument and performs atomic  ex-
       change if equal or
	  compare_exchange_strong atomic load if not
				  (public member function)

http://cppreference.com		  2022.07.31	  std::experi..._shared_ptr(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::experimental::atomic_shared_ptr&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help