projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(1) add actions for the fence
[model-checker.git]
/
include
/
impatomic.h
diff --git
a/include/impatomic.h
b/include/impatomic.h
index a69ba7860342ed34568a00930ed6b451a8663cee..2fde095ee67e6ce5498c4a8dd61d62c0779f2fec 100644
(file)
--- a/
include/impatomic.h
+++ b/
include/impatomic.h
@@
-110,10
+110,9
@@
inline void atomic_flag::fence( memory_order __x__ ) const volatile
else { model_rmwc_action((void *)__p__, __x__); *__q__ = __t__; __r__ = false;} \
__r__; })
else { model_rmwc_action((void *)__p__, __x__); *__q__ = __t__; __r__ = false;} \
__r__; })
-//TODO
#define _ATOMIC_FENCE_( __a__, __x__ ) \
#define _ATOMIC_FENCE_( __a__, __x__ ) \
-
({
;})
-
+
({ model_fence_action(__x__)
;})
+
#define ATOMIC_CHAR_LOCK_FREE 1
#define ATOMIC_CHAR16_T_LOCK_FREE 1
#define ATOMIC_CHAR_LOCK_FREE 1
#define ATOMIC_CHAR16_T_LOCK_FREE 1