promise: add const
authorBrian Norris <banorris@uci.edu>
Tue, 5 Feb 2013 22:01:34 +0000 (14:01 -0800)
committerBrian Norris <banorris@uci.edu>
Wed, 6 Feb 2013 21:44:39 +0000 (13:44 -0800)
promise.h

index 8eec87bd4dbf7f32ec3ecdb95b4bf611f5559bf9..e040e169e83e1657f53230c107f7805b8416fc2e 100644 (file)
--- a/promise.h
+++ b/promise.h
@@ -39,8 +39,8 @@ class Promise {
        bool has_failed() const;
        uint64_t get_value() const { return value; }
        void set_write(const ModelAction *act) { write = act; }
-       const ModelAction * get_write() { return write; }
-       int get_num_available_threads() { return num_available_threads; }
+       const ModelAction * get_write() const { return write; }
+       int get_num_available_threads() const { return num_available_threads; }
        bool is_compatible(const ModelAction *write) const;
 
        void print() const;