From e20752de68fe336e9fa184bef0616e31c738452c Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Tue, 17 Aug 2010 23:26:43 -0700 Subject: Added labels to blocking conditions. --- src/rt/rust_task.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rt/rust_task.h') diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index b66ee5a1..9a4e0c7b 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -24,6 +24,7 @@ rust_task : public maybe_proxy, const char *const name; ptr_vec *state; rust_cond *cond; + const char *cond_name; rust_task *supervisor; // Parent-link for failure propagation. size_t idx; size_t gc_alloc_thresh; @@ -70,7 +71,7 @@ rust_task : public maybe_proxy, const char *state_str(); void transition(ptr_vec *svec, ptr_vec *dvec); - void block(rust_cond *on); + void block(rust_cond *on, const char* name); void wakeup(rust_cond *from); void die(); void unblock(); -- cgit v1.2.3