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_upcall.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/rt/rust_upcall.cpp') diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index fb85233c..a3373870 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -191,13 +191,13 @@ upcall_join(rust_task *task, maybe_proxy *target) { if (target->is_proxy()) { notify_message:: send(notify_message::JOIN, "join", task, target->as_proxy()); - task->block(target_task); + task->block(target_task, "joining remote task"); task->yield(2); } else { // If the other task is already dying, we don't have to wait for it. if (target_task->dead() == false) { target_task->tasks_waiting_to_join.push(task); - task->block(target_task); + task->block(target_task, "joining local task"); task->yield(2); } } @@ -238,7 +238,7 @@ upcall_recv(rust_task *task, uintptr_t *dptr, rust_port *port) { task->log(rust_log::COMM, "<=== waiting for rendezvous data ==="); task->rendezvous_ptr = dptr; - task->block(port); + task->block(port, "waiting for rendezvous data"); task->yield(3); } -- cgit v1.2.3