Concurrency in C++20 and Beyond
summary
C++20 delivers concrete concurrency upgrades: std::jthread with built‑in stop_token gives automatic join plus cooperative cancellation; std::latch, std::barrier, std::counting_semaphore provide one‑shot, reusable and counting synchronization primitives used in loop and readiness patterns; and low‑level atomics gain atomic<std::shared_ptr>/atomic_ref and wait/notify for blocking on atomic changes. The committee is standardizing executors (senders/receivers) and futures continuations and proposing concurrent queues, hash maps, and safe reclamation (RCU, hazard pointers).
AI-written summary · about
chapters (11)
- 0:00Introduction to concurrency
- 3:09Cooperative cancellation
- 12:29Jthread and integration
- 15:47Latches and synchronization
- 23:08Barriers for looping tasks
- 26:34Semaphores and signaling
- 34:32Atomic updates and ref
- 47:15Atomic performance nuances
- 54:54Coroutines in C++20
- 59:28Future standard proposals
- 1:16:08Concurrent data structures
related talks
01h 04mConcurrency in C++20 and Beyond
01h 00mConcurrency in C++20: A Deep Dive
01h 00mConcurrency Improvements in C++20: A Deep Dive
01h 07mThe C++20 Synchronization Library
59mAn Introduction to Multithreading in C++20
47mConcurrent Programming in C++
01h 04mBack to Basics: Concurrency
01h 05m“The Continuing Future of C++ Concurrency"
