Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #120211
| From | Michael S <already5chosen@yahoo.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: My deque-replaement |
| Date | 2024-09-23 13:42 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <20240923134212.00003264@yahoo.com> (permalink) |
| References | (14 earlier) <vcpccl$28hig$1@dont-email.me> <vcpd8g$28k8u$3@raubtier-asyl.eternal-september.org> <vcr5nt$2kdhq$1@dont-email.me> <vcr5ps$2kdit$1@raubtier-asyl.eternal-september.org> <vcrcgt$2ljl4$1@dont-email.me> |
On Mon, 23 Sep 2024 09:31:09 -0000 (UTC) Muttley@dastardlyhq.com wrote: > On Mon, 23 Sep 2024 09:36:32 +0200 > Bonita Montero <Bonita.Montero@gmail.com> boringly babbled: > >Am 23.09.2024 um 09:35 schrieb Muttley@dastardlyhq.com: > >> On Sun, 22 Sep 2024 17:31:34 +0200 > >> Bonita Montero <Bonita.Montero@gmail.com> boringly babbled: > >>> Am 22.09.2024 um 17:16 schrieb Muttley@dastardlyhq.com: > >>>> On Sun, 22 Sep 2024 06:49:13 -0400 > >>>> Chris Ahlstrom <OFeem1987@teleworm.us> boringly babbled: > >>>>> Muttley@dastardlyhq.com wrote this copyrighted missive and > >>>>> expects > >>> royalties: > >>>>> > >>>>>> <snip> > >>>>>> > >>>>>> And you required a number of posts using loads of gibberish to > >>>>>> attempt to > > > >>>>>> explain yet you still failed. Meanwhile someone else managed > >>>>>> it in 2 > >lines. > >>> > >>>>> > >>>>> Ahhh, the famous "2 lines of code" claim. > >>>> > >>>> Who said anything about code? > >>>> > >>> > >>> You said you could replace my code with 10 lines of code - without > >>> noticing what it does. > >> > >> I was refering to how someone explained the reason for the > >> template param of semaphores in 2 lines whereas you and others > >> spent paragraphs trying and failing. > > > >You needed several descriptions which were all correct. > > Several descriptions which all parotted the cppreference page which > doesn't explain it properly otherwise I wouldn't have asked. > I wonder which of explanations that you had gotten do you consider satisfactory? If you are thinking about explanation given by David Brown then I am quite sure that despite sounding convincing his explanation is wrong. In a typical implementation counting semaphores *do not* maintain list of IDs of waiting threads within std::counting_semaphore object. The article on cppreference.com that does not try to explain why LeastMaxValue is a template parameter seems to me as the most adequate, because logical explanation for that choice does not exist. It would have been much more logical if the type of the counter rather than its max value had been chosen as a template parameter. Of course with requirement that the type has to be signed integer.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-20 15:18 +0200
Re: My deque-replaement Muttley@dastardlyhq.com - 2024-09-20 14:10 +0000
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-20 16:18 +0200
Re: My deque-replaement Muttley@dastardlyhq.com - 2024-09-20 15:08 +0000
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-20 17:12 +0200
Re: My deque-replaement Muttley@dastardlyhq.com - 2024-09-20 15:57 +0000
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-20 18:03 +0200
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-20 18:09 +0200
Re: My deque-replaement Muttley@dastardlyhq.com - 2024-09-21 09:40 +0000
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-21 12:54 +0200
Re: My deque-replaement Chris Ahlstrom <OFeem1987@teleworm.us> - 2024-09-21 08:18 -0400
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-21 14:25 +0200
Re: My deque-replaement Muttley@dastardlyhq.com - 2024-09-21 15:59 +0000
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-21 18:12 +0200
Re: My deque-replaement Muttley@dastardlyhq.com - 2024-09-22 07:58 +0000
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-22 10:48 +0200
Re: My deque-replaement Muttley@dastardlyhq.com - 2024-09-22 09:01 +0000
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-22 11:49 +0200
Re: My deque-replaement Muttley@dastardlyhq.com - 2024-09-22 15:13 +0000
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-22 17:28 +0200
Re: My deque-replaement Chris Ahlstrom <OFeem1987@teleworm.us> - 2024-09-22 06:49 -0400
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-22 13:00 +0200
Re: My deque-replaement Muttley@dastardlyhq.com - 2024-09-22 15:19 +0000
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-22 17:30 +0200
Re: My deque-replaement Muttley@dastardlyhq.com - 2024-09-22 15:16 +0000
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-22 17:31 +0200
Re: My deque-replaement Muttley@dastardlyhq.com - 2024-09-23 07:35 +0000
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-23 09:36 +0200
Re: My deque-replaement Muttley@dastardlyhq.com - 2024-09-23 09:31 +0000
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-23 11:47 +0200
Re: My deque-replaement Michael S <already5chosen@yahoo.com> - 2024-09-23 13:42 +0300
Re: My deque-replaement David Brown <david.brown@hesbynett.no> - 2024-09-23 14:09 +0200
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-23 19:00 +0200
Re: My deque-replaement jseigh <jseigh_es00@xemaps.com> - 2024-09-21 13:03 -0400
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-21 19:13 +0200
Re: My deque-replaement jseigh <jseigh_es00@xemaps.com> - 2024-09-21 15:29 -0400
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-22 08:23 +0200
Re: My deque-replaement jseigh <jseigh_es00@xemaps.com> - 2024-09-22 08:10 -0400
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-22 15:03 +0200
Re: My deque-replaement "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-09-22 11:37 -0700
Re: My deque-replaement "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-09-21 13:59 -0700
Re: My deque-replaement jseigh <jseigh_es00@xemaps.com> - 2024-09-21 18:31 -0400
Re: My deque-replaement wij <wyniijj5@gmail.com> - 2024-09-22 07:58 +0800
Re: My deque-replaement Bonita Montero <Bonita.Montero@gmail.com> - 2024-09-22 09:51 +0200
Re: My deque-replaement wij <wyniijj5@gmail.com> - 2024-09-23 09:04 +0800
csiph-web