diff options
| author | Michael Bebenita <[email protected]> | 2010-08-09 07:52:07 -0700 |
|---|---|---|
| committer | Michael Bebenita <[email protected]> | 2010-08-09 07:52:07 -0700 |
| commit | 30734a9a7ba8e58bf4bd4196f8abd1fd40241732 (patch) | |
| tree | fa281c9ad53c9acfa9f51e0d0b0abab41121ab64 /src/rt/rust_task.cpp | |
| parent | Added class to abstract away platform specific thread primitives. (diff) | |
| download | rust-30734a9a7ba8e58bf4bd4196f8abd1fd40241732.tar.xz rust-30734a9a7ba8e58bf4bd4196f8abd1fd40241732.zip | |
Some pretty printing in the runtime.
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 9f4fa611..63724bbb 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -333,6 +333,7 @@ rust_task::kill() { if (this == dom->root_task) dom->fail(); + log(rust_log::TASK, "preparing to unwind task: 0x%" PRIxPTR, this); run_on_resume(dom->root_crate->get_unwind_glue()); } @@ -515,6 +516,10 @@ rust_task::free(void *p, bool is_gc) } } +const char * +rust_task::state_str() { + return dom->state_vec_name(state); +} void rust_task::transition(ptr_vec<rust_task> *src, ptr_vec<rust_task> *dst) |