Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Coroutines are Qt - Safer Thread Pools Interactions

NDC Conferences via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This talk demonstrates how C++20 coroutines can simplify asynchronous Qt applications that offload work to worker threads. A practical example shows how to move execution between threads, guard main-thread data against race conditions, and check that result storage remains valid.

Syllabus

Intro
Outline
Motivation - The Ping-Pong Pattern
Challenges
Running Example: Remarks
Approach 1 - The Qt Way: Qobjects
Approach 2 - Nested Lambdas
Other Approaches
Coroutines - High-Level Overview
Coroutines - Supported Operations
Coroutines - Pseudo-Code
Coroutines in C++
C++ Coroutines - Notable Objects
C++ Coroutines - New Coroutine Operator
C++ Coroutines - Practical Example
C++ Coroutines - Awaitable Interface
C++ Coroutines - co_await on Awaitables
Design Principles
Proposed Solution - 4 Incremental Steps
Self-Dispatching Coroutines - Custom Await
Self-Dispatching Coroutines - Running Exa
Self-Dispatching Coroutines - Recap
Automate Lifetime Checks - Problem State
Automate Lifetime Checks - Example of Desir
Automate Lifetime Checks - Guard clas
Automate Lifetime Checks - Checked Await
Automate Lifetime Checks - Running Exar
2. Automate Lifetime Checks - Recap
Guarding Thread-Unsafe Pointers - Fronten
Guarding Thread-Unsafe Pointers - Improved
Guarding Thread-Unsafe Pointers - Swapp
Guarding Thread-Unsafe Pointers - Rec
Guarding Thread-Unsafe Pointers - Backen
Guarding Thread-Unsafe Pointers - Running
Guarding Thread-Unsafe Pointers - Expirit
Guarding Thread-Unsafe Pointers - ToThrea
Final Reworked Example
Final Design - Remarks
Hidden Costs

Taught by

NDC Conferences

Reviews

Start your review of Coroutines are Qt - Safer Thread Pools Interactions

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.