X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=action.h;h=dd7de7a1ec2ca17f6081708d77758577e74777d7;hb=d5188b9694c29e0d776a643965f2461a1fbbe5e1;hp=68db2c35899c479b5aa1b0b9329f049a14b84e45;hpb=b6f06ab2c626eb6e0f044fa9c7d1b74fbc82a09d;p=model-checker.git diff --git a/action.h b/action.h index 68db2c3..dd7de7a 100644 --- a/action.h +++ b/action.h @@ -26,7 +26,7 @@ using std::memory_order_seq_cst; /** Note that this value can be legitimately used by a program, and hence by iteself does not indicate no value. */ -#define VALUE_NONE 1234567890 +#define VALUE_NONE 0xdeadbeef /** A special value to represent a successful trylock */ @@ -94,6 +94,7 @@ public: bool is_failed_trylock() const; bool is_read() const; bool is_write() const; + bool could_be_write() const; bool is_rmwr() const; bool is_rmwc() const; bool is_rmw() const; @@ -127,6 +128,7 @@ public: void set_sleep_flag() { sleep_flag=true; } bool get_sleep_flag() { return sleep_flag; } + unsigned int hash() const; MEMALLOC private: