An operation is atomic when no other thread can observe it half done: it takes effect as one indivisible step of every interleaving. atomic_fetch_add(&x, 1) reads, adds and writes as one step.
Computer Science · المسرد
Computer Science · المسرد
An operation is atomic when no other thread can observe it half done: it takes effect as one indivisible step of every interleaving. atomic_fetch_add(&x, 1) reads, adds and writes as one step.