finish promise support
[model-checker.git] / promise.h
index 180d9b01cc3bfc723d8dc3deb62c83c1a4e90e5a..7b3d1ecf363baf36e7cda4b2ae3d034a80ad61cf 100644 (file)
--- a/promise.h
+++ b/promise.h
@@ -14,8 +14,9 @@ class ModelAction;
 class Promise {
  public:
        Promise(ModelAction * act, uint64_t value);
-       const ModelAction * get_action() { return read; }
+       ModelAction * get_action() { return read; }
        int increment_threads() { return ++numthreads; }
+       uint64_t get_value() { return value; }
        
  private:
        uint64_t value;