4 ms·
For a somewhat less "for dummies" treatment of the C++ memory model, see Herb Sutter's classic talk "atomic<> Weapons" [1]. [1] https://www.youtube.com/watch?v
by Sharlin 4y ago
For a somewhat less "for dummies" treatment of the C++ memory model, see Herb Sutter's classic talk "atomic<> Weapons" [1].
[1] https://www.youtube.com/watch?v=A8eCGOqgvH4 https://www.youtube.com/watch?v=A8eCGOqgvH4
- dragontamer 4y agoThis is a good talk. A good set of blogposts is Preshing as well: https://preshing.com/20120710/memory-barriers-are-like-source-control-operations/ https://preshing.com/20120710/memory-barriers-are-like-sourc... https://preshing.com/20120913/acquire-and-release-semantics/ https://preshing.com/20120913/acquire-and-release-semantics/ (etc. etc. Preshing wrote a lot on this subject, browse the blog) Not quite on C++ atomics or the C++11 concurrency model. But more of generic discussion on this extremely complex subject.
- dataflow 4y agoTurns out the C++ memory model has some issues that came to light after that talk. See https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0668r5.html https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p06...