Come to this talk to understand the C++ memory model and learn about shared data synchronization challenges and their solutions. You will find out how to use mutexes and atomics in illustrative examples.
Sharing data in multi-thread programming may be tricky and there is plenty of options on how to deal with it. You should always go for the simplest possible scenario to not end up in trouble. In this talk, I will introduce common techniques available in C++. We will go through different examples to demonstrate how to use mutexes and atomics and I will show you how to simplify your code to involve as few critical points as possible.