Article View: comp.lang.c++
Article #1204Re: Fwd: futexes vs. system semaphores
From: Chris M. Thomasson
Date: Sun, 06 Dec 2026 03:29
Date: Sun, 06 Dec 2026 03:29
17 lines
1826 bytes
1826 bytes
On 12/5/2026 7:12 PM, Tristan Wibberley wrote: > On 04/12/2026 23:25, Chris M. Thomasson wrote: >> 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 > > Why is that a problem, every semaphore has a maximum capacity, that > one's maximum is 1. > > Are you sure about that?
Technical Details
Message-ID:
<11f2kqk$3l72j$2@dont-email.me>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.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> <11evi5g$25mm2$2@dont-email.me> <11f2jrb$3jjje$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.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: Sat, 5 Dec 2026 19:29:23 -0800 Organization: A noiseless patient Spider Lines: 17 Message-ID: <11f2kqk$3l72j$2@dont-email.me> References: <11duih8$sm6c$1@raubtier-asyl.eternal-september.org> <11duq79$vfpt$1@raubtier-asyl.eternal-september.org> <11evi5g$25mm2$2@dont-email.me> <11f2jrb$3jjje$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 06 Dec 2026 03:29:25 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3841107"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/PDirf+OsS/1dKRaKJIgsa9TmccC27lh0="; posting-host="abe34923f900c43eeafdd54313a63d31" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:MBvJTxqa5yvY+ZWlStQRl13m+jk= sha256:b72g8okCsf7tiSPveNAdM3r0sWKSVjy5dUrWHtGx4g0= sha1:U8LFPjmjjAf2cmgZNyK5f3FlVS8= sha256:X1WXLquEO0sDz1FhoFce1kpMzGJr6Mm8Jkgvl3miR6o= In-Reply-To: <11f2jrb$3jjje$1@dont-email.me> Content-Language: en-US