struct future_value will be used more closely with class Promise, so put
it in the promise.h header. This requires some updates to other header
inclusions.
#include "common.h"
#include "model.h"
#include "threads-model.h"
+#include "modeltypes.h"
/**
* @brief Node constructor
#include <inttypes.h>
#include "mymemory.h"
-#include "modeltypes.h"
#include "schedule.h"
+#include "promise.h"
class ModelAction;
class Thread;
typedef int promise_t;
-struct future_value {
- uint64_t value;
- modelclock_t expiration;
-};
-
struct fairness_info {
unsigned int enabled_count;
unsigned int turns;
#include "threads-model.h"
#include "model.h"
+#include "modeltypes.h"
+
+struct future_value {
+ uint64_t value;
+ modelclock_t expiration;
+};
class Promise {
public:
#define __SCHEDULE_H__
#include "mymemory.h"
+#include "modeltypes.h"
/* Forward declaration */
class Thread;