Subj : Re: possible lock-free stack on G4 livelock issue... To : comp.programming.threads From : SenderX Date : Mon Jan 17 2005 04:45 pm >> For push you could just do a regular load and store into the new node, >> then do a load reserved and test that value with the previously loaded >> value and retry if different. Might need a sync between the store and >> load reserved which would be expensive so I'd confirm it was actually >> going to be a problem first before trying that approach. > > Actually, this is what the list insertion example in appendix E of the > powerpc architecture manual does. There's only the one sync but you > need it anyway. Ahh yeah, it mentions all of this stuff. Here I thought I found something. I really need to brush up on my ppc asm; RTFM ;) .