~/talk

“C++11/14/17 atomics and memory model..."

Talkat CppCon 2015 · 2015-09-21..09-25· [c-and-cpp, concurrency]
links:none on file
slides:none on file

C++11 introduces three memory models (six orderings) and most compilers implement relaxed, seq_cst, acquire, release and acq_rel but not consume ordering, so relying on consume is unsafe; seq_cst is the default and often the slowest, while acquire/release lets you get much higher performance on weakly ordered CPUs. compare_exchange_weak can fail spuriously so loops are required, atomic_flag is the guaranteed lock‑free primitive, C++14 tightens fences and lock‑free rules, and C++17 formalizes ordering strength.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:45Why C++ memory model matters
  3. 6:43Atomic operations basics
  4. 10:13C++11/14/17 atomics evolution
  5. 12:18Sequential consistency explained
  6. 17:34Memory model and CPU reordering
  7. 18:40Cache coherency fundamentals
  8. 23:37Memory model in C++11
  9. 24:39Atomicity visibility and ordering
  10. 26:25Atomic operations and memory ordering
  11. 27:28Data races and undefined behavior
  12. 28:30Volatile vs atomics
  13. 30:20Atomic types and operations
  14. 34:38Atomic flag and lock-free basics
  15. 36:45Atomic compare exchange weak
  16. 38:55Memory ordering strength
  17. 41:23Atomic types and operations summary
  18. 44:14Memory ordering operations overview
  19. 45:40Sequence before and happens before
  20. 47:44Double-checked locking example
  21. 50:15Sequential consistency test case
  22. 53:45Relaxed ordering explained
  23. 57:46Relaxed ordering analogy
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.