diff options
| author | Michael Bebenita <mbebenita@mozilla.com> | 2010-08-17 23:26:43 -0700 |
|---|---|---|
| committer | Michael Bebenita <mbebenita@mozilla.com> | 2010-08-17 23:49:57 -0700 |
| commit | e20752de68fe336e9fa184bef0616e31c738452c (patch) | |
| tree | cc2280b968295fbe7c75244a5569c69ca00ef775 /src/rt/rust_task.cpp | |
| parent | 7ff39ea448c60e5ab993bb4a32649e60de13184d (diff) | |
| download | rust-e20752de68fe336e9fa184bef0616e31c738452c.tar.gz rust-e20752de68fe336e9fa184bef0616e31c738452c.zip | |
Added labels to blocking conditions.
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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<rust_task> *src, ptr_vec<rust_task> *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 |
