Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

std::atomic

The C++ type wrapper that makes every load, store and update of a variable atomic, so threads can share it without a data race.

std::atomic () provides load, store, exchange, compare_exchange and fetch_ operations that never form data races; for lock-free sizes they compile to plain moves or atomic instructions chosen by the memory order argument (default memory_order_seq_cst).

Read the full section →