Atomic Types
suggest changeSyntax
- std::atomic<T>
- std::atomic_flag
Remarks
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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents