execution: document promises list; it is assumed to be sorted
authorBrian Norris <banorris@uci.edu>
Thu, 6 Jun 2013 00:13:55 +0000 (17:13 -0700)
committerBrian Norris <banorris@uci.edu>
Thu, 6 Jun 2013 00:13:55 +0000 (17:13 -0700)
Document the assumptions made about the 'promises' list.

execution.h

index ab4df362bcd89544402fafb701d2b982bb5c7be7..9c9c1ca454431dc64a3ee8ddf17cd19d13c8a5d4 100644 (file)
@@ -202,6 +202,13 @@ private:
        HashTable<const void *, action_list_t *, uintptr_t, 4> condvar_waiters_map;
 
        HashTable<void *, SnapVector<action_list_t> *, uintptr_t, 4> obj_thrd_map;
+
+       /**
+        * @brief List of currently-pending promises
+        *
+        * Promises are sorted by the execution order of the read(s) which
+        * created them
+        */
        SnapVector<Promise *> promises;
        SnapVector<struct PendingFutureValue> futurevalues;