diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-08-13 16:20:27 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-13 18:59:48 -0700 |
| commit | 5394e34aa43687e36fb94656faf075b125c43bb5 (patch) | |
| tree | 2553a2abb61083a94278e956259a194cfecc470f /src/libcore/task.rs | |
| parent | 6b43c0c1add8d2caaa3c391d8d8daca2c609047e (diff) | |
| download | rust-5394e34aa43687e36fb94656faf075b125c43bb5.tar.gz rust-5394e34aa43687e36fb94656faf075b125c43bb5.zip | |
core: Camel case some lesser-used modules
Diffstat (limited to 'src/libcore/task.rs')
| -rw-r--r-- | src/libcore/task.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/task.rs b/src/libcore/task.rs index e2767da0c3e..244feb3f713 100644 --- a/src/libcore/task.rs +++ b/src/libcore/task.rs @@ -188,7 +188,7 @@ type task_opts = { enum task_builder = { opts: task_opts, gen_body: fn@(+fn~()) -> fn~(), - can_not_copy: option<util::noncopyable>, + can_not_copy: option<util::NonCopyable>, mut consumed: bool, }; @@ -725,7 +725,7 @@ type taskgroup_data = { // tasks in this group. mut descendants: taskset, }; -type taskgroup_arc = unsafe::exclusive<option<taskgroup_data>>; +type taskgroup_arc = unsafe::Exclusive<option<taskgroup_data>>; type taskgroup_inner = &mut option<taskgroup_data>; @@ -754,7 +754,7 @@ type ancestor_node = { // Recursive rest of the list. mut ancestors: ancestor_list, }; -enum ancestor_list = option<unsafe::exclusive<ancestor_node>>; +enum ancestor_list = option<unsafe::Exclusive<ancestor_node>>; // Accessors for taskgroup arcs and ancestor arcs that wrap the unsafety. #[inline(always)] @@ -762,7 +762,7 @@ fn access_group<U>(x: taskgroup_arc, blk: fn(taskgroup_inner) -> U) -> U { unsafe { x.with(blk) } } #[inline(always)] -fn access_ancestors<U>(x: unsafe::exclusive<ancestor_node>, +fn access_ancestors<U>(x: unsafe::Exclusive<ancestor_node>, blk: fn(x: &mut ancestor_node) -> U) -> U { unsafe { x.with(blk) } } |
