projects
/
c11tester.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a8ba56
)
split these defs out of other stuff
author
Brian Demsky
<bdemsky@uci.edu>
Fri, 20 Jul 2012 00:53:45 +0000
(17:53 -0700)
committer
Brian Norris
<banorris@uci.edu>
Thu, 2 Aug 2012 17:12:41 +0000
(10:12 -0700)
include/memoryorder.h
[new file with mode: 0644]
patch
|
blob
diff --git a/include/memoryorder.h
b/include/memoryorder.h
new file mode 100644
(file)
index 0000000..
93e87a0
--- /dev/null
+++ b/
include/memoryorder.h
@@ -0,0
+1,24
@@
+#ifndef MEMORYORDER_H
+#define MEMORYORDER_H
+#ifdef __cplusplus
+#include <cstddef>
+namespace std {
+#else
+#include <stddef.h>
+#include <stdbool.h>
+#endif
+
+
+typedef enum memory_order {
+ memory_order_relaxed, memory_order_acquire, memory_order_release,
+ memory_order_acq_rel, memory_order_seq_cst
+} memory_order;
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+
+#endif