C++ Logo

std-proposals

Advanced search

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

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sun, 12 Feb 2023 16:41:05 -0800
On Sunday, 12 February 2023 14:58:03 PST Frederick Virchanza Gotham via Std-
Proposals wrote:
> 1) If you want to stop a normal function from being re-entered, then
> write "noreentry" after its name.
> 2) If you want to stop a member function from being re-entered for
> *this, then write "noreentry_this_object" after its name.
> 3) If you want to stop a member function from being re-entered for all
> objects, then write "noreentry_all_objects" after its name.

How is #3 different from #1?

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

Received on 2023-02-13 00:41:07