X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=action.h;h=f6fb06236fe0230eb942c38dcc177c081db341bd;hb=d1ea44cf0feb35d7d44b81bd26b49ecbfecccb83;hp=c455ea780883b371d80caed2d25c95e3d16edf1b;hpb=c7cd65f78d1c7956a02ac1e1cbd833e3dd17a3f1;p=model-checker.git diff --git a/action.h b/action.h index c455ea7..f6fb062 100644 --- a/action.h +++ b/action.h @@ -64,7 +64,7 @@ class ModelAction { public: ModelAction(action_type_t type, memory_order order, void *loc, uint64_t value = VALUE_NONE); ~ModelAction(); - void print(void) const; + void print(bool print_cv = true) const; thread_id_t get_tid() const { return tid; } action_type get_type() const { return type; } @@ -78,6 +78,7 @@ public: void set_node(Node *n) { node = n; } void copy_from_new(ModelAction *newaction); + void set_seq_number(modelclock_t num); void set_try_lock(bool obtainedlock); bool is_mutex_op() const; bool is_lock() const; @@ -103,7 +104,7 @@ public: void create_cv(const ModelAction *parent = NULL); ClockVector * get_cv() const { return cv; } void read_from(const ModelAction *act); - void synchronize_with(const ModelAction *act); + bool synchronize_with(const ModelAction *act); bool has_synchronized_with(const ModelAction *act) const; bool happens_before(const ModelAction *act) const;