Deutsch English Français Italiano |
<vtpcnt$384n4$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!eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.lang.c++ Subject: Re: signalling a condvar from inside vs. signalling a condvar von outside Date: Wed, 16 Apr 2025 15:59:09 -0700 Organization: A noiseless patient Spider Lines: 16 Message-ID: <vtpcnt$384n4$1@dont-email.me> References: <vte0g6$pmgv$1@raubtier-asyl.eternal-september.org> <vtef76$16guv$1@dont-email.me> <vtgloc$36urv$1@raubtier-asyl.eternal-september.org> <vth3gt$3j0qm$1@dont-email.me> <vth5ig$3kqh7$1@raubtier-asyl.eternal-september.org> <vthb0p$3p9fh$1@dont-email.me> <vtl9ii$3dqu3$1@raubtier-asyl.eternal-september.org> <vtmapb$bjcc$1@dont-email.me> <vtnam3$1c6fn$1@raubtier-asyl.eternal-september.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 17 Apr 2025 00:59:11 +0200 (CEST) Injection-Info: dont-email.me; posting-host="9522cd356d5df9e68dd08838294c274d"; logging-data="3412708"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nK9gGmfbO9UO5C5l6ww/iFdz2+UFKOlc=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:JpJ1YK/h18mrxgpTmQgJGXLi+vQ= Content-Language: en-US In-Reply-To: <vtnam3$1c6fn$1@raubtier-asyl.eternal-september.org> Bytes: 2068 On 4/15/2025 9:12 PM, Bonita Montero wrote: > Am 15.04.2025 um 21:07 schrieb Chris M. Thomasson: > >> In real applications there is generally more going on in those >> critical sections vs your test... Well, I have seen some horror shows >> in my life. >> >> Again, think of a scenario where the lock is held. The thread >> signals... Another thread wakes up and has to instantly block on a >> wait morphing queue in the kernel. > > Not with glibc. > Sigh. I would need to see how glibc works internally. But that is besides the point. Try to signal/broadcast outside when possible.