Concurrency
Atomics and memory ordering
Atomic operations, the C++ memory orders and the happens-before relation that decides what one thread can see of another thread’s writes. A single-producer single-consumer queue is correct only if its orderings are.