aboutsummaryrefslogtreecommitdiff
path: root/src/rt/rust_internal.h
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-07-05 14:43:40 -0700
committerGraydon Hoare <[email protected]>2010-07-05 14:43:40 -0700
commitb1eeb9b8256f42c9525832b6126a0e47d675e11e (patch)
tree42a6d5593203f590af6d663212c759eaaa471807 /src/rt/rust_internal.h
parentUn-XFAIL mutable-alias-vec.rs. Was only failing due to a typo, but a more tho... (diff)
downloadrust-b1eeb9b8256f42c9525832b6126a0e47d675e11e.tar.xz
rust-b1eeb9b8256f42c9525832b6126a0e47d675e11e.zip
Change from 'spawner' to 'supervisor' in rust_task, and add an unsupervise call.
Diffstat (limited to 'src/rt/rust_internal.h')
-rw-r--r--src/rt/rust_internal.h5
1 files changed, 4 insertions, 1 deletions
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<rust_task>,
ptr_vec<rust_task> *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<rust_task>,
// 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();