1 /** @file clockvector.h
2 * @brief Implements a clock vector.
5 #ifndef __CLOCKVECTOR_H__
6 #define __CLOCKVECTOR_H__
9 #include "modeltypes.h"
11 /* Forward declaration */
16 ClockVector(ClockVector *parent = NULL, ModelAction *act = NULL);
18 bool merge(const ClockVector *cv);
19 bool synchronized_since(const ModelAction *act) const;
22 modelclock_t getClock(thread_id_t thread);
26 /** @brief Holds the actual clock data, as an array. */
29 /** @brief The number of threads recorded in clock (i.e., its length). */
33 #endif /* __CLOCKVECTOR_H__ */