From 3a188af8d61a8a4b5bc2fa8e7054bb7d9e1e2446 Mon Sep 17 00:00:00 2001
From: Rhys Ulerich shared_ptr
instance can be "read" (accessed
using only const operations) simultaneously by multiple threads. Different shared_ptr
instances can be "written to" (accessed using mutable operations such as operator=
-
or reset
) simultaneosly by multiple threads (even
+ or reset
) simultaneously by multiple threads (even
when these instances are copies, and share the same reference count
underneath.)
Any other simultaneous accesses result in undefined behavior.