From 00b14c0561d3838aeb798d3c22f4136f8c4d136b Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Tue, 5 Feb 2013 14:01:34 -0800 Subject: [PATCH] promise: add const --- promise.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/promise.h b/promise.h index 8eec87b..e040e16 100644 --- 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; -- 2.34.1