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
Chapter 3. Sharing data between threads
Listing 3.1. Protecting a list with a mutex
Listing 3.2. Accidentally passing out a reference to protected ...
Get C++ Concurrency in Action 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.