projects
/
cdsspec-compiler.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3214145
)
action: add const qualifier
author
Brian Norris
<banorris@uci.edu>
Thu, 21 Jun 2012 18:16:38 +0000
(11:16 -0700)
committer
Brian Norris
<banorris@uci.edu>
Thu, 21 Jun 2012 18:16:38 +0000
(11:16 -0700)
action.cc
patch
|
blob
|
history
action.h
patch
|
blob
|
history
diff --git
a/action.cc
b/action.cc
index 9f95727c8dcb63b27dfffc9782ab376a644d852b..6627714e1089b2ad16c85cc7ef4abe43d77b6f95 100644
(file)
--- a/
action.cc
+++ b/
action.cc
@@
-144,7
+144,7
@@
bool ModelAction::happens_before(ModelAction *act)
return act->cv->synchronized_since(this);
}
-void ModelAction::print(void)
+void ModelAction::print(void)
const
{
const char *type_str;
switch (this->type) {
diff --git
a/action.h
b/action.h
index ae4afb29d27f928cbe63a34d79629a6d6310b28b..8ccebe395d5b0c7fdd2805fb0591e39e98b3ae65 100644
(file)
--- a/
action.h
+++ b/
action.h
@@
-33,7
+33,7
@@
class ModelAction {
public:
ModelAction(action_type_t type, memory_order order, void *loc, int value);
~ModelAction();
- void print(void);
+ void print(void)
const
;
thread_id_t get_tid() const { return tid; }
action_type get_type() const { return type; }