Add ref counts to CycleGraph
[c11tester.git] / cyclegraph.h
index 3ea4e3bbd2c9382562c39ca7ce05754d2b61301c..c9481b788caf00fd939670e45a99c7b8256ae445 100644 (file)
@@ -63,7 +63,6 @@ public:
        void addEdge(CycleNode *node);
        CycleNode * getEdge(unsigned int i) const;
        unsigned int getNumEdges() const;
-       CycleNode * removeEdge();
        bool setRMW(CycleNode *);
        CycleNode * getRMW() const;
        void clearRMW() { hasRMW = NULL; }
@@ -84,6 +83,9 @@ private:
        /** ClockVector for this Node. */
        ClockVector *cv;
        friend class CycleGraph;
+
+       /** @brief Reference count to node. */
+       int refcount;
 };
 
 #endif /* __CYCLEGRAPH_H__ */