~/talk

[old version]The C++20 Synchrononization Library

Talkat Meeting C++ 2019 · 2019-11-14..11-16· [rust]
slides:none on file

C++20 adds concrete primitives and a working demo: a small tasking runtime implements a bounded MPMC queue, jthread with stop_token and proper join-on-destruction, plus termination via a latch-and-barrier pattern so workers drain before exit. New APIs include atomic::wait/notify, atomic_ref with floating-point fetch_add, counting and binary semaphores, and a fair ticket mutex; the demo uses these to parallelize histogram and a work-efficient inclusive_scan and claims to target GPUs with a libc++ CUDA port.

AI-written summary · about

  1. 0:00Introduction
  2. 1:29Why C++20 needs sync primitives
  3. 11:51Tasking runtime with jthread
  4. 21:50Low-latency mutex alternatives
  5. 36:00Termination detection with latches
  6. 43:00Parallel histogram with atomic_ref
  7. 51:26Parallel inclusive scan algorithm
  8. 1:00:39Summary
~/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.