projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a42f201
)
libatomic: add DBG() calls
author
Brian Norris
<banorris@uci.edu>
Thu, 26 Apr 2012 18:47:22 +0000
(11:47 -0700)
committer
Brian Norris
<banorris@uci.edu>
Thu, 26 Apr 2012 19:04:59 +0000
(12:04 -0700)
libatomic.cc
patch
|
blob
|
history
diff --git
a/libatomic.cc
b/libatomic.cc
index e224a8a3d412bffa96bb052c61a5132b936a0495..b607e222dce6c133238e0140162fa0f250c740a1 100644
(file)
--- a/
libatomic.cc
+++ b/
libatomic.cc
@@
-1,13
+1,16
@@
#include "libatomic.h"
#include "model.h"
+#include "common.h"
void atomic_store_explicit(struct atomic_object *obj, int value, memory_order order)
{
+ DBG();
model->switch_to_master(new ModelAction(ATOMIC_WRITE, order, obj, value));
}
int atomic_load_explicit(struct atomic_object *obj, memory_order order)
{
+ DBG();
model->switch_to_master(new ModelAction(ATOMIC_READ, order, obj, VALUE_NONE));
return 0;
}