C++11

// <atomic> ​
​​enum memory_order {
    memory_order_relaxed,
    memory_order_consume,
    memory_order_acquire,
    memory_order_release,
    memory_order_acq_rel,
    memory_order_seq_cst
};

为指定的原子操作附加内存次序限制(Memory ordering constraint)