Article View: comp.lang.c++
Article #1140Re: Fwd: futexes vs. system semaphores
From: Chris M. Thomasson
Date: Fri, 04 Dec 2026 23:25
Date: Fri, 04 Dec 2026 23:25
17 lines
1702 bytes
1702 bytes
On 11/22/2026 5:20 AM, Bonita Montero wrote: [...] FtxSema s(false); // producer queue.push(a); s.release(); queue.push(b); s.release(); // count is still 1, not 2 // consumer s.acquire(); // gets a s.acquire(); // blocks forever, even though b is in the queue ? Notice anything odd here? Sigh, kiddo.
Technical Details
Message-ID:
<11evi5g$25mm2$2@dont-email.me>Path:
mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-nl.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11duih8$sm6c$1@raubtier-asyl.eternal-september.org> <11duq79$vfpt$1@raubtier-asyl.eternal-september.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-nl.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.lang.c++ Subject: Re: Fwd: futexes vs. system semaphores Date: Fri, 4 Dec 2026 15:25:35 -0800 Organization: A noiseless patient Spider Lines: 17 Message-ID: <11evi5g$25mm2$2@dont-email.me> References: <11duih8$sm6c$1@raubtier-asyl.eternal-september.org> <11duq79$vfpt$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: Fri, 04 Dec 2026 23:25:36 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2284226"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19R3qQziexgkI0D2l7ADmTWJ1mIE7Nbjjw="; posting-host="b19a3c9bc26d9213a9f72d10babaa512" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:l4mvN68DnX8V8+Iln30+4ZmtRaA= sha256:BBHIlnarD0aFd2Bc3PoSaJ999WCKDLE1N+XNhctaU+0= sha1:Bs3OMNQt6KSEmzKhY1NMWn8cOjg= sha256:OhAzRnZIDqHIP2owqLxmHrylfNhdO7cypT9ZIB6MqC0= In-Reply-To: <11duq79$vfpt$1@raubtier-asyl.eternal-september.org> Content-Language: en-US