action: add const qualifier
authorBrian Norris <banorris@uci.edu>
Thu, 21 Jun 2012 18:16:38 +0000 (11:16 -0700)
committerBrian Norris <banorris@uci.edu>
Thu, 21 Jun 2012 18:16:38 +0000 (11:16 -0700)
action.cc
action.h

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) {
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; }