Skip to content

Commit 8cff5c2

Browse files
committed
migrate task/spawn.rs to LinearSet
1 parent 7de5e6c commit 8cff5c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/task/spawn.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,21 +96,21 @@ macro_rules! move_it (
9696
{ $x:expr } => ( unsafe { let y = move *ptr::addr_of(&($x)); move y } )
9797
)
9898

99-
type TaskSet = send_map::linear::LinearMap<*rust_task,()>;
99+
type TaskSet = send_map::linear::LinearSet<*rust_task>;
100100

101101
fn new_taskset() -> TaskSet {
102-
send_map::linear::LinearMap()
102+
send_map::linear::LinearSet::new()
103103
}
104104
fn taskset_insert(tasks: &mut TaskSet, task: *rust_task) {
105-
let didnt_overwrite = tasks.insert(task, ());
105+
let didnt_overwrite = tasks.insert(task);
106106
assert didnt_overwrite;
107107
}
108108
fn taskset_remove(tasks: &mut TaskSet, task: *rust_task) {
109109
let was_present = tasks.remove(&task);
110110
assert was_present;
111111
}
112112
pub fn taskset_each(tasks: &TaskSet, blk: fn(v: *rust_task) -> bool) {
113-
tasks.each_key(|k| blk(*k))
113+
tasks.each(|k| blk(*k))
114114
}
115115

116116
// One of these per group of linked-failure tasks.

0 commit comments

Comments
 (0)