clockvector: add print() method
[c11tester.git] / clockvector.h
index 615dfeb7e83196dff11213ed589ceaaadc7b2196..eb7086253d7f97e79b0f1d1ce41ef7b4e988e561 100644 (file)
@@ -2,6 +2,7 @@
 #define __CLOCKVECTOR_H__
 
 #include "threads.h"
+#include "mymemory.h"
 
 /* Forward declaration */
 class ModelAction;
@@ -12,6 +13,10 @@ public:
        ~ClockVector();
        void merge(ClockVector *cv);
        bool happens_before(ModelAction *act, thread_id_t id);
+
+       void print();
+
+       MEMALLOC
 private:
        int *clock;
        int num_threads;