Merge branch 'sandbox' (remove finalize())
[model-checker.git] / clockvector.h
index 615dfeb7e83196dff11213ed589ceaaadc7b2196..d233cdd136c46f7e00c547f9ac1d4be95d62cdee 100644 (file)
@@ -1,7 +1,12 @@
+/** @file clockvector.h
+ *  @brief Implements a clock vector.
+ */
+
 #ifndef __CLOCKVECTOR_H__
 #define __CLOCKVECTOR_H__
 
 #include "threads.h"
+#include "mymemory.h"
 
 /* Forward declaration */
 class ModelAction;
@@ -11,7 +16,11 @@ public:
        ClockVector(ClockVector *parent = NULL, ModelAction *act = NULL);
        ~ClockVector();
        void merge(ClockVector *cv);
-       bool happens_before(ModelAction *act, thread_id_t id);
+       bool synchronized_since(ModelAction *act);
+
+       void print();
+
+       MEMALLOC
 private:
        int *clock;
        int num_threads;