Skip to content

Commit

Permalink
Merge pull request #7 from bblum/master
Browse files Browse the repository at this point in the history
test.rs: Change to new task_builder
  • Loading branch information
brson committed Jul 24, 2012
2 parents 0f3d130 + 0fa9af4 commit 6020e06
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions test.rs
@@ -1,18 +1,10 @@
fn on_osmain(f: fn~()) {
let builder = task::builder();
task::set_opts(builder, {
sched: some({
mode: task::osmain,
foreign_stack_size: none
})
with task::get_opts(builder)
});
let po = comm::port();
let ch = comm::chan(po);
task::run(builder, || {
do task::spawn_sched(task::osmain) {
f();
comm::send(ch, ());
});
}
comm::recv(po);
}

Expand Down

0 comments on commit 6020e06

Please sign in to comment.