MPSC queue design (placeholder)

This is an illustrative placeholder, not a complete lock-free algorithm or a correctness/performance claim. A queue design may represent a node and its next pointer like this:

use std::sync::atomic::AtomicPtr;

struct Node<T> {
    next: AtomicPtr<Node<T>>,
    value: Option<T>,
}

A working implementation must specify its memory-ordering and reclamation strategy and prove the intended progress guarantees; architecture-specific assumptions and those details are deliberately not invented here.

Back to notes