Article View: comp.lang.c++
Article #871Re: Relacy version of my futex lock-free stack...
From: Chris M. Thomasson
Date: Sun, 15 Nov 2026 08:20
Date: Sun, 15 Nov 2026 08:20
14 lines
1980 bytes
1980 bytes
On 11/14/2026 8:26 PM, Chris M. Thomasson wrote: > Okay. I finally found some time to port my old experimental lock-free > stack that can be waited on via a futex. When you get some free time to > burn, check out my code. Even get Relacy working, and run the sucker! > > Its neat to me that my old code passes Relacy. Makes me feel pretty > good. Now, take notice how I am only using one producer here that does a > fancy shutdown using a "handoff", akin to pass the buck. It only uses > flush for the consumers. No ABA, no memory usage issues, everything rocks! > > Here is my relacy test unit: (ct_stack_futex.hpp)[...] Distributing this might be a little interesting! Makes me want to use an eventcount over a futex.
Technical Details
Message-ID:
<11dbq18$2jjqh$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11dbc8r$2g6rh$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!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: Relacy version of my futex lock-free stack... Date: Sun, 15 Nov 2026 00:20:55 -0800 Organization: A noiseless patient Spider Lines: 14 Message-ID: <11dbq18$2jjqh$1@dont-email.me> References: <11dbc8r$2g6rh$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 15 Nov 2026 08:20:56 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2740049"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//DXbbEUO1cBJJAnZ+sZRq50XrFWHbKkk="; posting-host="8d4bfe82b7f7bce740ab6d5ca121f681" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:mnICo93MAQ3DgzEQMYGgGqklYw4= sha256:1jB4kn9B6NTunG62HuzM5QZkh+xAE4khdZSyossx3zA= sha1:6dQyd0To9DeWS4zzHdGHafD6Y8g= sha256:vqlRfUF9RPb09nNg/GyiPTSVnfU1sfLTKt0qi4ArGPA= Content-Language: en-US In-Reply-To: <11dbc8r$2g6rh$1@dont-email.me>