Is all this Invarient **** er... stuff, premature optimisation?

Me Here p9e883002 at sneakemail.com
Tue Apr 29 12:25:11 PDT 2008


Walter Bright wrote:

> Me Here wrote:
> > If that describes copy-swap then yes. Else no :)
> 
> copy-swap is what lock free algorithms rely on for updating a data structure. It's at the root of STM, and even has its own TLA, CAS (Copy And Swap).

Ah! As in compare & exchange (cmpxchg & cmpxchg8b) x86 opcodes. I wasn't thinking at the m/code level. 

Cheers, b.

-- 




More information about the Digitalmars-d mailing list