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.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index cd38433ed70..12623255ff1 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -63,6 +63,7 @@ rust_task::rust_task(rust_dom *dom, rust_task *spawner, const char *name) : name(name), state(&dom->running_tasks), cond(NULL), + cond_name("none"), supervisor(spawner), idx(0), rendezvous_ptr(0), @@ -552,7 +553,7 @@ rust_task::transition(ptr_vec *src, ptr_vec *dst) } void -rust_task::block(rust_cond *on) +rust_task::block(rust_cond *on, const char* name) { log(rust_log::TASK, "Blocking on 0x%" PRIxPTR ", cond: 0x%" PRIxPTR, (uintptr_t) on, (uintptr_t) cond); @@ -561,6 +562,7 @@ rust_task::block(rust_cond *on) transition(&dom->running_tasks, &dom->blocked_tasks); cond = on; + cond_name = name; } void @@ -574,6 +576,7 @@ rust_task::wakeup(rust_cond *from) transition(&dom->blocked_tasks, &dom->running_tasks); I(dom, cond == from); cond = NULL; + cond_name = "none"; } void -- cgit 1.4.1-3-g733a5