/cxx-concurrency

Concurrency semantics and concepts in the C++ standard library

Primary LanguageC++

Concurrency in C++

Introduction to C++ standard library features for multi-threading. Supporting content for this series of blog posts.

Background

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.

Prerequesites

  • C++ compiler (C++11 or newer)
  • CMake (v3.8 or newer)
  • POSIX threading library

Getting Started

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.