Atomic Types

Download c++ eBook


  • std::atomic<T>
  • std::atomic_flag


std::atomic allows atomic access to a TriviallyCopyable type, it is implementation-dependent if this is done via atomic operations or by using locks. The only guaranteed lock-free atomic type is std::atomic_flag.

Related Examples


73 Contributors: 2
Sunday, August 14, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial:

Download eBook