Adding relevant comments for fork based implementation.
[cdsspec-compiler.git] / clockvector.h
index d233cdd136c46f7e00c547f9ac1d4be95d62cdee..b7d720688a1c6df4a9aad410e1eb4897b08d35ff 100644 (file)
@@ -16,13 +16,16 @@ public:
        ClockVector(ClockVector *parent = NULL, ModelAction *act = NULL);
        ~ClockVector();
        void merge(ClockVector *cv);
-       bool synchronized_since(ModelAction *act);
+       bool synchronized_since(ModelAction *act) const;
 
-       void print();
+       void print() const;
 
        MEMALLOC
 private:
+       /** @brief Holds the actual clock data, as an array. */
        int *clock;
+
+       /** @brief The number of threads recorded in clock (i.e., its length).  */
        int num_threads;
 };