Date: Thu, 22 Feb 2024 10:29:18 -0500
On 2/22/24 10:16, Phil Bouchard via Std-Proposals wrote:
>
> Ideally we could have atomic containers they are based on but alas this
> is not the case so they are not lock-free but they are implemented very
> efficiently.
Note also that there is no need for the shared_ptr to be thread_safe
given the mutex locking happens at the container level.
But a thread-safe shared_ptr is still desirable when they are used in
isolation, but that's another subject.
>
> Ideally we could have atomic containers they are based on but alas this
> is not the case so they are not lock-free but they are implemented very
> efficiently.
Note also that there is no need for the shared_ptr to be thread_safe
given the mutex locking happens at the container level.
But a thread-safe shared_ptr is still desirable when they are used in
isolation, but that's another subject.
-- Logo <https://www.fornux.com/> *Phil Bouchard* facebook icon <https://www.linkedin.com/in/phil-bouchard-5723a910/> Founder & CEO T: (819) 328-4743 E: phil_at_[hidden]| www.fornux.com <http://www.fornux.com> 320-345 de la Gauchetière Ouest| Montréal (Qc), H2Z 0A2 Canada Banner <https://goglobalawards.org/> Le message ci-dessus, ainsi que les documents l'accompagnant, sont destinés uniquement aux personnes identifiées et peuvent contenir des informations privilégiées, confidentielles ou ne pouvant être divulguées. Si vous avez reçu ce message par erreur, veuillez le détruire. This communication (and/or the attachments) is intended for named recipients only and may contain privileged or confidential information which is not to be disclosed. If you received this communication by mistake please destroy all copies.
Received on 2024-02-22 15:29:20