~/talk

Structured Concurrency: Writing Safer Concurrent Code with Coroutines...

Talkat CppCon 2019 · 2019-09-15..09-20· [concurrency, software-architecture]
links:none on file
slides:none on file

Argues that using C++20 coroutines with a lazy task type and composable algorithms yields deterministic, exception-safe concurrency: calls no longer implicitly start detached work, initial_suspend makes coroutines lazy, destructors can safely destroy unstarted frames, and joining happens without blocking. Demonstrates concrete algorithms—when_all / when_all_range for parallel results, when_windowed to bound concurrency, take_until for cancellation—and cites cppcoro and Folly implementations; shows the pattern removes dangling-reference bugs and avoids heap/lock overheads from eager futures.

AI-written summary · about

  1. 0:00Introduction
  2. 5:33Structured concurrency
  3. 12:18Object lifetimes
  4. 17:38Destructors
  5. 18:27Async Operations
  6. 22:44Why is this hard
  7. 25:57The solution
  8. 26:50Making a Coroutine start lazily
  9. 30:04Using an algorithm
  10. 32:03Error handling
  11. 35:37Cancellation
  12. 39:56The Future
  13. 42:12Summary
  14. 43:20Questions
~/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.