- Promise(ModelAction *read, struct future_value fv) :
- num_available_threads(0),
- value(fv.value),
- expiration(fv.expiration),
- read(read),
- write(NULL)
- {
- add_thread(fv.tid);
- eliminate_thread(read->get_tid());
- }
- modelclock_t get_expiration() const { return expiration; }
- ModelAction * get_action() const { return read; }
+ Promise(const ModelExecution *execution, ModelAction *read, struct future_value fv);
+ bool add_reader(ModelAction *reader);
+ ModelAction * get_reader(unsigned int i) const;
+ unsigned int get_num_readers() const { return readers.size(); }