C++ Memory Model
Table of Contents
1. Overview
TODO: write introduction for “C++ Memory Model”.
2. Details
TODO: expand this section.
Table of contents
- Overview
- Atomic Data Types
- std::atomic_flag
- std::atomic
- std::atomic (Specializations)
- Synchronization and Ordering Constraints
- The Different C++ Memory Models
- Sequential Consistency
- Sequential Consistency – Theory
- Sequential Consistency – Practice
- Acquire-Release Semantic
- Acquire-Release Semantic – Synchronization and Ordering Constraints
- Acquire-Release Semantic – Transitivity
- The Special Case std::memory_order_consume
- The Typical Error
- Relaxed Semantics
- Wait and Sleep
- Fences
- Memory Barriers
- Acquire- and Release Memory Barriers