~/talk

C++11 Multithreading done right?

Talkat Meeting C++ 2014 · 2014-12-05..12-06· [security]
slides:none on file

Shows concrete C++11 fixes and fails: demos of detached threads causing terminate versus using scoped_thread joins automatically; data races fixed by lock_guard/unique_lock and std::lock to avoid deadlock; singleton initialization solved with std::call_once or function‑static initialization; condition_variable pitfalls replaced by promise/future and async examples. Slides run broken code, wall‑clock sleeps to expose races, and working rewrites that compile and run; useful if wanting runnable patterns and debugging lessons, skip otherwise.

AI-written summary · about

  1. 0:00C++11 multithreading intro
  2. 1:05Thread creation and lifecycle
  3. 3:10Scoped threads and joining
  4. 6:26Mutexes for shared resources
  5. 9:15Lock guards and RAII
  6. 10:59Deadlocks and mutex ordering
  7. 12:49Atomic locking with std::lock
  8. 15:26Thread-safe singleton patterns
  9. 18:38Double-checked locking pitfalls
  10. 21:30Singletons with call_once
  11. 22:53Meyer's singleton in C++11
  12. 23:37Thread-local storage
  13. 25:04Condition variables
  14. 31:12Producer-consumer with condition vars
  15. 35:09Promises vs condition variables
  16. 40:15Task parallelism with promises
  17. 42:49Simplifying with promises
  18. 46:31C++ memory model
  19. 47:35Atomic operations
  20. 51:34Acquire-release semantics
  21. 53:39Synchronizing non-atomics
  22. 57:11Q&A
~/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.