X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=promise.h;h=178b86e7d4b3cedba32f2240f2493e63655efb4d;hb=63e202b2db7a90e176db54c864d2e54ec535c03f;hp=8ff8c3e319bd5b2f4a4b758be51c8adb7a5dbeb6;hpb=1b5185231cf94d29d52d497645577841df4fb603;p=model-checker.git diff --git a/promise.h b/promise.h index 8ff8c3e..178b86e 100644 --- a/promise.h +++ b/promise.h @@ -39,8 +39,10 @@ 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; + bool is_compatible_exclusive(const ModelAction *write) const; void print() const;