promise: add Promise::get_index function
[c11tester.git] / promise.h
index 90ec1d2050bc650b714eebe8f64f5aabde0de7e0..e8c233c61d8240d4820fc39ad7d735d0ffeff355 100644 (file)
--- a/promise.h
+++ b/promise.h
@@ -43,6 +43,8 @@ class Promise {
        uint64_t get_value() const { return fv.value; }
        struct future_value get_fv() const { return fv; }
 
+       int get_index() const;
+
        void print() const;
 
        bool equals(const Promise *x) const { return this == x; }