Sujet : Re: counting_semaphore question
De : andreytarasevich (at) *nospam* hotmail.com (Andrey Tarasevich)
Groupes : comp.lang.c++Date : 12. Sep 2024, 16:34:23
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbuu5g$a0rk$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla Thunderbird
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