~/talk

What do you mean "thread-safe"?

Talkat CppCon 2018 · 2018-09-23..09-28· [c-and-cpp, concurrency]
links:none on file
slides:none on file

Defines an API race as two concurrent operations that violate an object's contract (broader than a data race), classifies types as thread-safe or thread-compatible (or not), and warns about thread-hostile functions that touch hidden shared state. Recommends documenting a type's classification, avoiding mutable members and hidden shared pointers, using mutexes or atomic-backed wrappers for shared state, and treating container elements as independent inputs only when you can take their address.

AI-written summary · about

  1. 0:00Introduction to thread-safety
  2. 1:05What thread-safety really means
  3. 6:45Introducing API races
  4. 10:59Thread-safe vs thread-compatible types
  5. 20:20Thread-hostile functions
  6. 25:07Handling sub-objects in types
  7. 30:17Practical guidelines for thread-safety
  8. 46:16Q&A session
~/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.