diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-06-02 01:55:22 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-06-13 23:18:45 -0700 |
| commit | abc3a8aa1e76f3ecc3930e20453a52681843cec0 (patch) | |
| tree | 4bb0825a5c2df977c6238a7f9eaa64686284f3b3 /src/libstd/rt/sched.rs | |
| parent | d83d38c7fe3408848664de66a9a53587f627a01b (diff) | |
| download | rust-abc3a8aa1e76f3ecc3930e20453a52681843cec0.tar.gz rust-abc3a8aa1e76f3ecc3930e20453a52681843cec0.zip | |
std::rt: Add JoinLatch
This is supposed to be an efficient way to link the lifetimes of tasks into a tree. JoinLatches form a tree and when `release` is called they wait on children then signal the parent. This structure creates zombie tasks which currently keep the entire task allocated. Zombie tasks are supposed to be tombstoned but that code does not work correctly.
Diffstat (limited to 'src/libstd/rt/sched.rs')
| -rw-r--r-- | src/libstd/rt/sched.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/rt/sched.rs b/src/libstd/rt/sched.rs index 97a1c26ed4d..104eb4b8bae 100644 --- a/src/libstd/rt/sched.rs +++ b/src/libstd/rt/sched.rs @@ -151,7 +151,10 @@ pub impl Scheduler { // XXX: Reenable this once we're using a per-task queue. With a shared // queue this is not true //assert!(sched.work_queue.is_empty()); - rtdebug!("scheduler metrics: %s\n", sched.metrics.to_str()); + rtdebug!("scheduler metrics: %s\n", { + use to_str::ToStr; + sched.metrics.to_str() + }); return sched; } |
