Sujet : Re: Futex Stack Test...
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : comp.lang.c++Date : 03. May 2025, 20:58:41
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vv5shh$89nm$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla Thunderbird
On 5/3/2025 11:19 AM, Bonita Montero wrote:
Am 03.05.2025 um 20:02 schrieb Chris M. Thomasson:
Now, its fun to be able to get a lock-free stack with only single word exchange and cas, and have the ability to use it with a futex to allow one to wait on empty conditions.
Is a lock-free stack with a single word CAS really possible without an
ABA-problem ?
Will get back to you. Need to run a bunch of errands. If you omit single item pop, yup. It's also possible to get rid of the cas in push.
[...]