[cpp-threads] Brief example SPARC PSO Implementation for C/C++ Memory Model

Alexander Terekhov alexander.terekhov at gmail.com
Sat Dec 27 18:31:27 GMT 2008


(cmpxchg aside for a moment)

Load Relaxed:  ld
Load Consume:  ld
Load Acquire:  ld
Load Seq_Cst:  membar #StoreLoad,ld
Store Relaxed: st
Store Release: membar #StoreStore,st
Store Seq Cst: membar #StoreStore,st,membar #StoreStore|#StoreLoad
Consume Fence: <ignore>
Acquire Fence: <ignore>
Release Fence: membar #StoreStore
Acq_Rel Fence: membar #StoreStore
Seq_Cst Fence: membar #StoreStore|#StoreLoad

Any objections and/or questions?

TIA.

regards,
alexander.



More information about the cpp-threads mailing list