C++ Logo

std-proposals

Advanced search

Re: [std-proposals] int Func(void) noreentry(-1)

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Tue, 14 Feb 2023 10:24:26 -0500
On Tue, Feb 14, 2023 at 5:52 AM Frederick Virchanza Gotham via
Std-Proposals <std-proposals_at_[hidden]> wrote:
>
> On Tue, Feb 14, 2023 at 9:32 AM Frederick Virchanza Gotham wrote:
> >
> > Here's a sensible combination:
> >
> > void Func(void)
> > noreentry_this_object(prevent_other_threads:skip)
> > noreentry_all_objects(prevent_other_threads:wait)
>
>
> I want to show just how much typing this would save.

How much typing would be saved has to be measured against how often
users *need* to type this. I don't see a lot of evidence that this is
a common idiom. Merely that it's a thing you needed in a particular
case.

Received on 2023-02-14 15:25:20