C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Fwd: set_new_handler extension

From: Jens Maurer <jens.maurer_at_[hidden]>
Date: Thu, 25 May 2023 21:30:24 +0200
On 25/05/2023 21.17, Phil Bouchard via Std-Proposals wrote:
> 2nd round of clarifications:
>
> The exact problem was OpenCV which is not using thread-safe reference
> count smart pointers has a race-condition. It turns out C++ doesn't even
> offer thread-safe reference count pointers anyways.

In which way does std::atomic<std::shared_ptr<T>>
as specified in [util.smartptr.atomic.shared] not satisfy your requirements?

Jens

Received on 2023-05-25 19:30:38