C++ Logo

std-proposals

Advanced search

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

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 02 Feb 2023 09:49:12 -0800
On Thursday, 2 February 2023 03:59:10 PST Frederick Virchanza Gotham via Std-
Proposals wrote:
> This new feature could be kept simple, or tt could made be very
> complex with extra parameters to do stuff like:
> * Prevent reentry by other threads but not by the same thread
> * Prevent reentry by the same thread but not by other threads
> * Prevent reentry by all threads except the one with the specified
> thread::id

You've mostly implemented this already as library solutions.

So please explain why you think this should be a core language change. What
can the core language do better than a library solution could?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-02-02 17:49:15