C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Helper class to make safe a thread-unsafe class

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Thu, 29 Jun 2023 02:04:58 +0300
On Thu, 29 Jun 2023 at 01:58, Barry Revzin via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> On Wed, Jun 28, 2023, 5:37 PM Frederick Virchanza Gotham via Std-Proposals <std-proposals_at_[hidden]> wrote:
>>
>> A few months ago I was thinking of submitting this to Boost, but now
>> I'm actually thinking maybe it should be in the Standard Library.
>>
>> I'm not the first person to come up with a class like this
>
>
> Indeed. This is boost::synchronized_value<T>.

There's also a synchronized_value in
https://open-std.org/JTC1/SC22/WG21/docs/papers/2023/n4953.pdf
I thought Jonathan mentioned that earlier?

Received on 2023-06-28 23:05:12