~/talk

Embedded Asynchronous Abstraction C++ - Implementing Senders & Receivers Without an OS

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

Argues that P2300-style senders/receivers can run on freestanding embedded MCUs with no OS, exceptions, or heap by mapping interrupts to schedulers (timer and priority), using intrusive lists for statically allocated tasks and non-movable operation state to hold receivers. Implements tag_invoke-based connect/start, sender adapters (then, let_value/sequence), when_all/when_any, and an allocation strategy that returns an optional stop_source for start_detached. Demonstrates cooperative cancellation via propagated stop_tokens and shows examples (blinky, timer-driven tasks, prioritized ISRs) that work without dynamic allocation.

AI-written summary · about

  1. 0:00Introduction and goals
  2. 2:22Embedded development
  3. 11:28Execution contexts
  4. 15:02Sender basics
  5. 19:46Operation states
  6. 23:46Timer scheduler
  7. 36:01Priority scheduler
  8. 43:59Sender adapters
  9. 51:58Monadic operations
  10. 1:10:00Wait operations
  11. 1:13:50Errors and cancellation
  12. 1:24:25Allocation and conclusion
~/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.