add a special order for volatile loads and stores
authorweiyu <weiyuluo1232@gmail.com>
Mon, 22 Jul 2019 19:17:49 +0000 (12:17 -0700)
committerweiyu <weiyuluo1232@gmail.com>
Mon, 22 Jul 2019 19:17:49 +0000 (12:17 -0700)
include/memoryorder.h

index 2117b5e..2e617a9 100644 (file)
@@ -14,7 +14,8 @@ namespace std {
 
 typedef enum memory_order {
        memory_order_relaxed, memory_order_consume, memory_order_acquire,
-       memory_order_release, memory_order_acq_rel, memory_order_seq_cst
+       memory_order_release, memory_order_acq_rel, memory_order_seq_cst,
+       volatile_order
 } memory_order;
 
 #ifdef __cplusplus