datarace/clockvector: switch 'clocks' to use 'unsigned int' (modelclock_t)
[model-checker.git] / clockvector.h
index b7d720688a1c6df4a9aad410e1eb4897b08d35ff..82f1e3774608229f33f1379e9037e37fff5b87a2 100644 (file)
@@ -8,6 +8,7 @@
 #include "threads.h"
 #include "mymemory.h"
 
+typedef unsigned int modelclock_t;
 /* Forward declaration */
 class ModelAction;
 
@@ -19,11 +20,12 @@ public:
        bool synchronized_since(ModelAction *act) const;
 
        void print() const;
+       modelclock_t getClock(thread_id_t thread);
 
        MEMALLOC
 private:
        /** @brief Holds the actual clock data, as an array. */
-       int *clock;
+       modelclock_t *clock;
 
        /** @brief The number of threads recorded in clock (i.e., its length).  */
        int num_threads;