Introduction to C++ standard library features for multi-threading. Supporting content for this series of blog posts.
Explore concurrency concepts and semantics using the C++ standard library and show how the Thread Sanitizer can be used to debug race conditions at runtime.
See the documentation for details.
- C++ compiler (C++11 or newer)
- CMake (v3.8 or newer)
- POSIX threading library
The project can be compiled using CMake and a C++ compiler:
$ cmake .
$ make
Executables are located in the bin/
directory.
$ ./bin/<executable>
An out-of-tree build is typically preferable to compiling in the source directory.
See the setup documentation for details.