Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <vbuu5g$a0rk$1@dont-email.me>
Deutsch   English   Français   Italiano  
<vbuu5g$a0rk$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Andrey Tarasevich <andreytarasevich@hotmail.com>
Newsgroups: comp.lang.c++
Subject: Re: counting_semaphore question
Date: Thu, 12 Sep 2024 07:34:23 -0700
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <vbuu5g$a0rk$1@dont-email.me>
References: <vbrqjj$3hvsd$1@dont-email.me>
 <vbs01c$3j5mc$1@raubtier-asyl.eternal-september.org>
 <vbs0tm$3jf62$1@dont-email.me>
 <vbs1al$3jgnp$1@raubtier-asyl.eternal-september.org>
 <vbs2fm$3jp23$1@dont-email.me> <87ikv1i2yk.fsf@bsb.me.uk>
 <vbuhk4$7hu2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 12 Sep 2024 16:34:24 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="49ce5e8b5d79c8cc67236c091ac3f621";
	logging-data="328564"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19Wusu6zskp3/O6DH18Cvw4"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:yB1UHWeETvTORsFUARxd1ZYMkeg=
In-Reply-To: <vbuhk4$7hu2$1@dont-email.me>
Content-Language: en-US
Bytes: 1821

On 09/12/24 4:00 AM, Muttley@dastardlyhq.com wrote:
> 
> Clang seems to ignore it. You can call release() as much as you like and
> it'll just keep increasing the counter.
> 

It "ignores" it exactly the same way as the following declaration

   std::uint_fast8_t n = 2;

might "ignore" the 8 in the type name and allow you to increment the 
variable well past 255. Come to think of it, the underlying reasons for 
why it can be so are very similar.

It is perfectly explained in the spec. And it's been thoroughly 
explained here. What's the difficulty?

-- 
Best regards,
Andrey