future_value: add thread ID parameter
[model-checker.git] / promise.h
index 1f8a810ad33e0ab0a3de283eb19bd8f711ea745e..3c0d5dddd7330e33f06bbc9c2a21320963e6fc4c 100644 (file)
--- a/promise.h
+++ b/promise.h
@@ -16,6 +16,7 @@
 struct future_value {
        uint64_t value;
        modelclock_t expiration;
+       thread_id_t tid;
 };
 
 class Promise {
@@ -39,7 +40,7 @@ class Promise {
 
        SNAPSHOTALLOC
  private:
-       std::vector<bool> eliminated_thread;
+       std::vector< bool, SnapshotAlloc<bool> > eliminated_thread;
        const uint64_t value;
        const modelclock_t expiration;
        ModelAction * const read;