{
return num_available_threads == 0;
}
+
+/**
+ * @param write A store which could satisfy this Promise
+ * @return True if the store can satisfy this Promise; false otherwise
+ */
+bool Promise::is_compatible(const ModelAction *write) const
+{
+ return thread_is_available(write->get_tid());
+}
void set_write(const ModelAction *act) { write = act; }
const ModelAction * get_write() { return write; }
int get_num_available_threads() { return num_available_threads; }
+ bool is_compatible(const ModelAction *write) const;
void print() const;