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