Showing content from https://en.cppreference.com/w/cpp/algorithm/../header/../experimental/atomic_shared_ptr.html below:
std::experimental::atomic_shared_ptr - cppreference.com
std::experimental::atomic_shared_ptr Merged into ISO C++ The functionality described on this page was merged into the mainline ISO C++ standard as of 11/2017; see std::atomic<shared_ptr<T>> (since C++20)
template< class T >
class atomic_shared_ptr;
(concurrency TS)
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.
[edit] Member functions constructs an atomic_shared_ptr
object
(public member function) [edit] stores a value into an atomic_shared_ptr
object
(public member function) [edit] checks if the atomic_shared_ptr
object is lock-free
(public member function) [edit] atomically replaces the value of the atomic object with a non-atomic argument
(public member function) [edit] atomically obtains the value of the atomic object
(public member function) [edit] loads a value from an atomic object
(public member function) [edit] atomically replaces the value of the atomic object and obtains the value held previously
(public member function) [edit] atomically compares the value of the atomic object with non-atomic argument and performs atomic exchange if equal or atomic load if not
(public member function) [edit]
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4