Toward generic atomic operations
Toward generic atomic operations
Posted Aug 2, 2012 14:37 UTC (Thu) by tvld (guest, #59052)In reply to: Toward generic atomic operations by kev009
Parent article: Toward generic atomic operations
Also note that the atomics are just a part of the memory model. Using libatomic-ops, for example, does not guarantee that your compiler actually adheres to the memory model (e.g., does not introduce speculative stores that could be data races in a multi-threaded execution). There are different opinions about whether the C++11/C11 memory model should be the default even for non C++11/C11 compilations. IMO, this would be A Good Thing; other people are worried about potential performance disadvantages for single-threaded programs.
