~/talk

C++ Coroutines and Structured Concurrency in Practice

Talkat C++Now 2024 · 2024-04-29..05-03· [concurrency]
links:none on file
slides:none on file

C++20 coroutines get practical tooling: an open source framework Corral implements structured concurrency, interoperates with custom event loops and Boost.Asio, and supports timeouts, cancellation and adapter awaitables. Production porting over two years shows concrete wins—porting I/O-bound services yields 40–50% code reduction, fewer lifetime bugs, and uniform cancellation semantics. The library uses nursery scopes, combiners like all_of/any_of, async cancellation with await_cancel, and an executor trampoline to keep resumptions predictable.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 12:08Structured concurrency fundamentals
  3. 22:46Nurseries and task combiners
  4. 31:54Task cancellation mechanics
  5. 47:34Resource cleanup in coroutines
  6. 56:12Entering the coroutine universe
  7. 1:06:22Real-world usage and performance
  8. 1:15:55Q&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.