From b1eeb9b8256f42c9525832b6126a0e47d675e11e Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Mon, 5 Jul 2010 14:43:40 -0700 Subject: Change from 'spawner' to 'supervisor' in rust_task, and add an unsupervise call. --- src/rt/rust_internal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/rt/rust_internal.h') diff --git a/src/rt/rust_internal.h b/src/rt/rust_internal.h index fafc1924..f877cefc 100644 --- a/src/rt/rust_internal.h +++ b/src/rt/rust_internal.h @@ -625,7 +625,7 @@ rust_task : public rc_base, ptr_vec *state; rust_cond *cond; uintptr_t* dptr; // Rendezvous pointer for send/recv. - rust_task *spawner; // Parent-link. + rust_task *supervisor; // Parent-link for failure propagation. size_t idx; size_t gc_alloc_thresh; size_t gc_alloc_accum; @@ -685,6 +685,9 @@ rust_task : public rc_base, // Run the gc glue on the task stack. void gc(size_t nargs); + // Disconnect from our supervisor. + void unsupervise(); + // Notify tasks waiting for us that we are about to die. void notify_waiting_tasks(); -- cgit v1.2.3