Re: Futex Stack Test...

Liste des GroupesRevenir à cl c++ 
Sujet : Re: Futex Stack Test...
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : comp.lang.c++
Date : 02. May 2025, 22:41:18
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vv3e5v$1vdo4$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 5/2/2025 11:30 AM, Chris M. Thomasson wrote:
On 5/2/2025 4:01 AM, Wuns Haerst wrote:
It's not hard to implement a lock-free stack with DW-CAS,
 Oh, I know. :^)
 Fwiw, my stack uses exchange for pop and a normal cas push. Have another one that uses exchange for push and pop, pretty nice.
 
so no need for futexes. That's my dcas_atomic:
 Keep in mind that the futex is only there to allow threads to wait on an empty condition...
  [snip code]
 I will take a look later on today.
Later on... Working now with GPU fun.
https://youtu.be/xDROUq-q0yI
;^D
Keep in mind that the futex is there to allow for waits.

Date Sujet#  Auteur
18 Feb 25 * Futex Stack Test...20Chris M. Thomasson
18 Feb 25 +* Re: Futex Stack Test...5Paavo Helde
18 Feb 25 i+* Re: Futex Stack Test...2James Kuyper
19 Feb 25 ii`- Re: Futex Stack Test...1Chris M. Thomasson
19 Feb 25 i+- Re: Futex Stack Test...1Chris M. Thomasson
28 Feb 25 i`- Re: Futex Stack Test...1Chris M. Thomasson
2 May 25 `* Re: Futex Stack Test...14Wuns Haerst
2 May 25  +* Re: Futex Stack Test...2Chris M. Thomasson
2 May 25  i`- Re: Futex Stack Test...1Chris M. Thomasson
3 May 25  `* Re: Futex Stack Test...11Chris M. Thomasson
3 May 25   `* Re: Futex Stack Test...10Wuns Haerst
3 May 25    `* Re: Futex Stack Test...9Bonita Montero
3 May 25     `* Re: Futex Stack Test...8Chris M. Thomasson
3 May 25      `* Re: Futex Stack Test...7Bonita Montero
3 May 25       `* Re: Futex Stack Test...6Chris M. Thomasson
4 May 25        `* Re: Futex Stack Test...5Chris M. Thomasson
8 May 25         +* Re: Futex Stack Test...2Bonita Montero
8 May 25         i`- Re: Futex Stack Test...1Chris M. Thomasson
8 May 25         `* Re: Futex Stack Test...2jseigh
10 May 25          `- Re: Futex Stack Test...1Chris M. Thomasson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal