diff options
| author | Ben Blum <bblum@andrew.cmu.edu> | 2012-08-07 14:42:30 -0400 |
|---|---|---|
| committer | Ben Blum <bblum@andrew.cmu.edu> | 2012-08-07 18:18:48 -0400 |
| commit | bdbad614ac7ea948fdd0d9cfb509d9b05008c3c2 (patch) | |
| tree | f9dbfb1ce10048c92d24b0f2d05b14750170c769 /src/libcore/task.rs | |
| parent | 32e4fd62e968cba994aa4e4a85b00c072fe58bc1 (diff) | |
Remove rust_cond_lock and sys::condition (rename to little_lock)
Diffstat (limited to 'src/libcore/task.rs')
| -rw-r--r-- | src/libcore/task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/task.rs b/src/libcore/task.rs index c066e7d6f51..04882373b37 100644 --- a/src/libcore/task.rs +++ b/src/libcore/task.rs @@ -740,12 +740,12 @@ enum ancestor_list = option<arc::exclusive<ancestor_node>>; // Accessors for taskgroup arcs and ancestor arcs that wrap the unsafety. #[inline(always)] fn access_group<U>(x: taskgroup_arc, blk: fn(taskgroup_inner) -> U) -> U { - unsafe { x.with(|_c, tg| blk(tg)) } + unsafe { x.with(blk) } } #[inline(always)] fn access_ancestors<U>(x: arc::exclusive<ancestor_node>, blk: fn(x: &mut ancestor_node) -> U) -> U { - unsafe { x.with(|_c, nobe| blk(nobe)) } + unsafe { x.with(blk) } } // Iterates over an ancestor list. |
