X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=clockvector.h;h=e19a2113a5e10f9860669656bb1583ec91da3620;hp=f2716dbd90497c9f260b1730bee9d25bc9c622fd;hb=a5125804a850074c164722b2355bfc181643d7f1;hpb=53748c53db55c1230d4b191caf0e4016a2b9c0a6 diff --git a/clockvector.h b/clockvector.h index f2716dbd..e19a2113 100644 --- a/clockvector.h +++ b/clockvector.h @@ -5,10 +5,9 @@ #ifndef __CLOCKVECTOR_H__ #define __CLOCKVECTOR_H__ -#include "threads.h" #include "mymemory.h" +#include "modeltypes.h" -typedef unsigned int modelclock_t; /* Forward declaration */ class ModelAction; @@ -16,14 +15,13 @@ class ClockVector { public: ClockVector(ClockVector *parent = NULL, ModelAction *act = NULL); ~ClockVector(); - void merge(const ClockVector *cv); + bool merge(const ClockVector *cv); bool synchronized_since(const ModelAction *act) const; - bool has_synchronized_with(const ClockVector *cv) const; void print() const; modelclock_t getClock(thread_id_t thread); - MEMALLOC + SNAPSHOTALLOC private: /** @brief Holds the actual clock data, as an array. */ modelclock_t *clock;