execution: add 'const'
authorBrian Norris <banorris@uci.edu>
Tue, 16 Apr 2013 02:17:53 +0000 (19:17 -0700)
committerBrian Norris <banorris@uci.edu>
Tue, 16 Apr 2013 02:17:53 +0000 (19:17 -0700)
execution.cc
execution.h

index 0006c66..dc1b6c5 100644 (file)
@@ -128,7 +128,8 @@ static SnapVector<action_list_t> * get_safe_ptr_vect_action(HashTable<void *, Sn
        return tmp;
 }
 
-action_list_t * ModelExecution::get_actions_on_obj(void * obj, thread_id_t tid) {
+action_list_t * ModelExecution::get_actions_on_obj(void * obj, thread_id_t tid) const
+{
        SnapVector<action_list_t> *wrv=obj_thrd_map->get(obj);
        if (wrv==NULL)
                return NULL;
index 9ae0b4f..6810fee 100644 (file)
@@ -88,7 +88,7 @@ public:
        void check_promises_thread_disabled();
        bool isfeasibleprefix() const;
 
-       action_list_t * get_actions_on_obj(void * obj, thread_id_t tid);
+       action_list_t * get_actions_on_obj(void * obj, thread_id_t tid) const;
        ModelAction * get_last_action(thread_id_t tid) const;
 
        bool check_action_enabled(ModelAction *curr);