X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=promise.h;h=7b3d1ecf363baf36e7cda4b2ae3d034a80ad61cf;hp=a47982d6d291078f547acfa2d3ddf9dc33881cc5;hb=bbf356ecc0554af1ecff878e305055ac1673d75e;hpb=bdef0741b8a01e16946d261bc2a657af5a683b3e diff --git a/promise.h b/promise.h index a47982d6..7b3d1ecf 100644 --- a/promise.h +++ b/promise.h @@ -14,6 +14,10 @@ class ModelAction; class Promise { public: Promise(ModelAction * act, uint64_t value); + ModelAction * get_action() { return read; } + int increment_threads() { return ++numthreads; } + uint64_t get_value() { return value; } + private: uint64_t value; ModelAction *read;