diff options
author | Richard Henderson <rth@redhat.com> | 2011-11-28 18:19:05 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2011-11-28 18:19:05 -0800 |
commit | cef86eb2888172eb1d262ae7227abd1e30cf1244 (patch) | |
tree | e0b09f20d2ce0b5309abefd38e8617fd62aa2ba9 /libgomp | |
parent | de4f64c73d09e75265451a435fbf26ed3a5d13f5 (diff) | |
download | gcc-cef86eb2888172eb1d262ae7227abd1e30cf1244.zip gcc-cef86eb2888172eb1d262ae7227abd1e30cf1244.tar.gz gcc-cef86eb2888172eb1d262ae7227abd1e30cf1244.tar.bz2 |
* libgomp.h (enum memmodel): New.
From-SVN: r181794
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 4 | ||||
-rw-r--r-- | libgomp/libgomp.h | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index b52de1a..e248138 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,7 @@ +2011-11-28 Richard Henderson <rth@redhat.com> + + * libgomp.h (enum memmodel): New. + 2011-11-21 Andreas Tobler <andreast@fgznet.ch> * configure: Regenerate. diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h index 9cf9d32..2c9c071 100644 --- a/libgomp/libgomp.h +++ b/libgomp/libgomp.h @@ -45,6 +45,17 @@ # pragma GCC visibility push(hidden) #endif +/* If we were a C++ library, we'd get this from <std/atomic>. */ +enum memmodel +{ + MEMMODEL_RELAXED = 0, + MEMMODEL_CONSUME = 1, + MEMMODEL_ACQUIRE = 2, + MEMMODEL_RELEASE = 3, + MEMMODEL_ACQ_REL = 4, + MEMMODEL_SEQ_CST = 5 +}; + #include "sem.h" #include "mutex.h" #include "bar.h" |