From 4ff8e15128f90d4e9e57897c48280c6f82bb8343 Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Wed, 28 Jul 2010 16:24:50 -0700 Subject: Move notification-messages out into their own file and unify into notify_message, make them use proxies, cache task proxies in dom. --- src/rt/rust_task.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/rt/rust_task.h') diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index 0c723a9d..34553b6c 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -4,6 +4,10 @@ #ifndef RUST_TASK_H #define RUST_TASK_H + +#include "util/array_list.h" + + struct rust_task : public maybe_proxy, public dom_owned @@ -35,6 +39,9 @@ rust_task : public maybe_proxy, // that location before waking us up. uintptr_t* rendezvous_ptr; + // List of tasks waiting for this task to finish. + array_list *> tasks_waiting_to_join; + rust_alarm alarm; rust_task(rust_dom *dom, @@ -95,6 +102,7 @@ rust_task : public maybe_proxy, // Notify tasks waiting for us that we are about to die. void notify_waiting_tasks(); + void notify_tasks_waiting_to_join(); uintptr_t get_fp(); uintptr_t get_previous_fp(uintptr_t fp); -- cgit v1.2.3