X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=promise.h;h=20aee036f99c3a6adad194b353846a524404ef1e;hb=1ef66fffe44c297326b1043cab978789b1071704;hp=852fe714f896dfbffc0b409fcd499058841a1ee0;hpb=d496f3fa3c31e7f2ed84a2e19e9c2b3993dca1a7;p=model-checker.git diff --git a/promise.h b/promise.h index 852fe71..20aee03 100644 --- a/promise.h +++ b/promise.h @@ -21,16 +21,7 @@ struct future_value { class Promise { public: - Promise(ModelAction *read, struct future_value fv) : - num_available_threads(0), - value(fv.value), - expiration(fv.expiration), - read(read), - write(NULL) - { - add_thread(fv.tid); - eliminate_thread(read->get_tid()); - } + Promise(ModelAction *read, struct future_value fv); modelclock_t get_expiration() const { return expiration; } ModelAction * get_action() const { return read; } bool eliminate_thread(thread_id_t tid);