Skip to content

Glossary: C++ Beyond the Basics

Atomic

Also written: atomics, std::atomic

A type such as `std::atomic<int>` whose operations (`++`, `+=`, `.load()`) are single steps no other thread can split. It suits shared counters and flags.

Where the book teaches it

Related terms

Data raceMutexThread