Modify task::join to indicate how the task terminated

This involves sticking yet another field into the task structure
This commit is contained in:
Brian Anderson
2011-07-14 19:39:53 -07:00
parent d9cc4cb81b
commit ced8393f20
6 changed files with 43 additions and 6 deletions

View File

@@ -89,6 +89,9 @@ rust_task : public maybe_proxy<rust_task>,
wakeup_callback *_on_wakeup;
// Indicates that the task ended in failure
bool failed;
lock_and_signal lock;
// Only a pointer to 'name' is kept, so it must live as long as this task.