C++ Thread Tutorial - Command Queue | C++ in 2021
Ozzadar
In this lesson, I introduce the C++ standard thread library by showing you how you can build a concurrent queue system.
We'll build upon this queue system in future lessons to achieve a multiple thread queue with thread pools and data sharing.
C++ in 2021 Github: https://github.com/mauville-technologies/cppin2021/releases/tag/tutorial-05
Reference Material: C++ Concurrency in Action: https://amzn.to/3iuSGLd
Chapters: 0:00 Intro 1:10 Github Repo 1:50 TaskManager Module Interface 4:50 Main Command Loop 11:35 std::thread basics 18:05 Implementing the Command Queue 31:00 Closing a thread / RAII 34:10 Joining threads ( Learning as we go ) 39:50 Demonstrating the Queue concurrency 42:00 Detaching Threads + Daemon Threads ( + live experimentation) ... https://www.youtube.com/watch?v=QUNVP6x8trs
242004028 Bytes