1、内存顺序
a、memory_order_relaxed;
b、memory_order_consume;
c、memory_order_acquire;
d、memory_order_release;
e、memory_order_acq_rel;
f、memory_order_seq_cst;这是原子类型上所有操作的内存顺序选项,是最严格的可用选项;顺序一致。
Acquire and Release语意:
Acquire semantics: is a property that can only apply to operations that read from shared memory, whether they are read-modify-write operations or plain loads. The operation is then considered a read-acquire. Acquire semantics prevent memory reordering of the read-acquire with any read or write operation that <