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.