February 2019
Intermediate to advanced
592 pages
20h 37m
English
Chapter 1. Hello, world of concurrency in C++!
Chapter 2. Managing threads
Listing 2.1. A function that returns while a thread still has access to local variables
Listing 2.2. Waiting for a thread to finish
Listing 2.3. Using RAII to wait for a thread to complete
Listing 2.4. Detaching a thread to handle other documents
Listing 2.5. Returning a std::thread from a function
Listing 2.6. scoped_thread and example usage
Listing 2.7. A joining_thread class
Listing 2.8. Spawns some threads and waits for them to finish
Chapter 3. Sharing data between threads