Deutsch English Français Italiano |
<vc0pfm$oj79$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: Muttley@dastardlyhq.com Newsgroups: comp.lang.c++ Subject: Re: counting_semaphore question Date: Fri, 13 Sep 2024 07:26:46 -0000 (UTC) Organization: A noiseless patient Spider Lines: 35 Message-ID: <vc0pfm$oj79$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> <vbuu5g$a0rk$1@dont-email.me> <vbuv8g$a8h2$1@dont-email.me> <vc0mnm$nseo$1@dont-email.me> Injection-Date: Fri, 13 Sep 2024 09:26:47 +0200 (CEST) Injection-Info: dont-email.me; posting-host="e9c6906c66bb8038990d860c394497cf"; logging-data="806121"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19wlLOLmwEz1CyDfQyEV0tf" Cancel-Lock: sha1:UM6gGFt+L9BBXZ1+qzxuaLAtHIw= Bytes: 2402 On Fri, 13 Sep 2024 08:39:50 +0200 David Brown <david.brown@hesbynett.no> boringly babbled: >On 12/09/2024 16:53, Muttley@dastardlyhq.com wrote: >>> 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 >> >> Incrementing integrals beyond their max value can have valid uses. > >No, it cannot. Clearly you've never done any low level networking where id fields are fixed sized and will eventually wrap. Eg, TCP sequence number. I'm sure there are a myriad of other examples. >>> It is perfectly explained in the spec. And it's been thoroughly >> >> LOL! Ah, a comedian has joined us! >> >> > >It certainly makes sense in the page at > ><https://en.cppreference.com/w/cpp/thread/counting_semaphore> If you think thats clear I'd hate to see what you consider obtuse. >But for some reason you have moved onto /wilful/ ignorance - you are >determined to ignore the information you have been given, to argue with >an insult people trying to help you, and to deride the whole concept. I >really don't get it. Did you want to know about the template parameter >or not? Or alternatively some people just can't explain things very well. 2 people managed it - you and the others didn't.