X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=clockvector.h;h=1a36a39dc040838f2c37b8166a8faf9b9a6a80fd;hp=739a336e1adc6c81178686c10da60d411cd903b8;hb=25d73096cfc14c655f94b01bb235cc5efd1d5696;hpb=13af354e762ebf0282eaf59a1e4758a89adb8558 diff --git a/clockvector.h b/clockvector.h index 739a336e..1a36a39d 100644 --- a/clockvector.h +++ b/clockvector.h @@ -5,20 +5,17 @@ #ifndef __CLOCKVECTOR_H__ #define __CLOCKVECTOR_H__ -#include "threads.h" #include "mymemory.h" - -typedef unsigned int modelclock_t; -/* Forward declaration */ -class ModelAction; +#include "modeltypes.h" +#include "classlist.h" class ClockVector { public: - ClockVector(ClockVector *parent = NULL, ModelAction *act = NULL); + ClockVector(ClockVector *parent = NULL, const ModelAction *act = NULL); ~ClockVector(); - void merge(const ClockVector *cv); + bool merge(const ClockVector *cv); + bool minmerge(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); @@ -32,4 +29,4 @@ private: int num_threads; }; -#endif /* __CLOCKVECTOR_H__ */ +#endif /* __CLOCKVECTOR_H__ */