~/talk

Lock-Free Programming (or, Juggling Razor Blades), Part I

Talkat CppCon 2014 · on Monday, 2014-09-08· at 14:00· Pascal· [rust]
slides:none on file

Concrete claims and usable patterns: uses std::atomic<T> and compare_exchange to publish complex structures with a single atomic handoff, fixes double-checked locking by making the instance pointer atomic, and shows a hybrid lock+atomic producer/consumer and a fully lock-free mail slots implementation. Explains progress categories (wait‑free, lock‑free, obstruction‑free), recommends measuring before/after, shows small optimizations (one-load Stefan trick), and supplies slides and code on the GitHub link.

AI-written summary · about

  1. 0:00Introduction to lock-free
  2. 1:02Why use lock-free?
  3. 3:33Assumptions and tools
  4. 7:20Atomic foundations
  5. 10:07C++ atomic operations
  6. 12:40Atomic notes and levels
  7. 15:32Levels of lock-freedom
  8. 17:56Double-checked locking
  9. 24:12Locking optimizations
  10. 26:53Meyers singleton
  11. 30:31Combining locks and atomics
  12. 37:35Lock-free mail slots
  13. 39:37Mail slot implementation
  14. 46:04Consumer mail slot code
  15. 58:38Singly-linked list challenge
~/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.