From 1b5185231cf94d29d52d497645577841df4fb603 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Fri, 25 Jan 2013 16:59:16 -0800 Subject: [PATCH] promise: update names/comments Make it more clear what 'act' is (it's a 'read' action). --- promise.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/promise.h b/promise.h index 35515d24..8ff8c3e3 100644 --- a/promise.h +++ b/promise.h @@ -21,15 +21,15 @@ struct future_value { class Promise { public: - Promise(ModelAction *act, struct future_value fv) : + Promise(ModelAction *read, struct future_value fv) : num_available_threads(0), value(fv.value), expiration(fv.expiration), - read(act), + read(read), write(NULL) { add_thread(fv.tid); - eliminate_thread(act->get_tid()); + eliminate_thread(read->get_tid()); } modelclock_t get_expiration() const { return expiration; } ModelAction * get_action() const { return read; } @@ -54,7 +54,10 @@ class Promise { const uint64_t value; const modelclock_t expiration; + + /** @brief The action which reads a promised value */ ModelAction * const read; + const ModelAction *write; }; -- 2.34.1