List of Listings
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
Get C++ Concurrency in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.