~/talk

The C++20 Synchronization Library

Talkat CppCon 2019 · 2019-09-15..09-20· [concurrency, c-and-cpp]
slides:none on file

Summarizes the C++20 sync additions and shows a working bounded-depth tasking runtime: uses std::atomic::wait/notify, std::atomic_ref, counting_semaphore, ticket mutex (atomic-backed), jthread + stop_token, and latch/barrier to coordinate hundreds to hundreds-of-thousands of threads. Builds a bounded concurrent queue with semaphores, replaces heavy mutexes with atomic wait/notify, and demonstrates parallel histogram and exclusive-scan implementations. The runtime works but requires a make_progress fallback to avoid submit-induced deadlock and can blow stacks via recursive submit; floating-point atomics and atomic_flag::test are also added.

AI-written summary · about

  1. 0:00Start
  2. 4:33stood threads
  3. 6:01add a destructor to our thread group class
  4. 13:30build a concurrent bounded queue
  5. 22:14build a spin mutex
  6. 29:57added a test method to atomic flag
  7. 34:29talk about the termination detection mechanism
  8. 39:28submit a special task to each one of the queues
  9. 46:18start off by building a parallel histogram
  10. 47:45spawn up some number of tasks
~/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.