Search⌘ K

Atomic Data Types

Understand the role of atomic data types in C++ multithreading. Learn to use built-in atomic types and the std::atomic template while recognizing the limitations on custom data types. This lesson helps you grasp atomic operations critical for thread-safe programming.

We'll cover the following...

C++ has a set of simple atomic data types. These are booleans, characters, numbers and pointers in many variants. They need the header <atomic>. You can define your atomic ...