cyclegraph: add CycleNode::resolvePromise(), CycleNode::getPromise()
[c11tester.git] / cyclegraph.h
index 4a3d083d13c19fb897a29ebe2917af04f0990423..e7e9380bb7e67e195d3d2ab95b587a44aa0234aa 100644 (file)
@@ -89,12 +89,14 @@ class CycleNode {
        CycleNode * getRMW() const;
        void clearRMW() { hasRMW = NULL; }
        const ModelAction * getAction() const { return action; }
+       const Promise * getPromise() const { return promise; }
 
        void popEdge() {
                edges.pop_back();
        }
 
        bool is_promise() const { return !action; }
+       void resolvePromise(const ModelAction *writer);
 
        SNAPSHOTALLOC
  private: