@@ -29,7 +29,7 @@ pub fn run_in_newsched_task(f: ~fn()) {
29
29
do run_in_bare_thread {
30
30
let mut sched = ~UvEventLoop : : new_scheduler ( ) ;
31
31
let task = ~Coroutine :: with_task ( & mut sched. stack_pool ,
32
- Task :: without_unwinding ( ) ,
32
+ ~ Task :: without_unwinding ( ) ,
33
33
f. take ( ) ) ;
34
34
sched. enqueue_task ( task) ;
35
35
sched. run ( ) ;
@@ -42,7 +42,7 @@ pub fn spawntask(f: ~fn()) {
42
42
43
43
let mut sched = local_sched:: take ( ) ;
44
44
let task = ~Coroutine :: with_task ( & mut sched. stack_pool ,
45
- Task :: without_unwinding ( ) ,
45
+ ~ Task :: without_unwinding ( ) ,
46
46
f) ;
47
47
do sched. switch_running_tasks_and_then ( task) |task| {
48
48
let task = Cell ( task) ;
@@ -57,7 +57,7 @@ pub fn spawntask_immediately(f: ~fn()) {
57
57
58
58
let mut sched = local_sched:: take ( ) ;
59
59
let task = ~Coroutine :: with_task ( & mut sched. stack_pool ,
60
- Task :: without_unwinding ( ) ,
60
+ ~ Task :: without_unwinding ( ) ,
61
61
f) ;
62
62
do sched. switch_running_tasks_and_then ( task) |task| {
63
63
let task = Cell ( task) ;
@@ -73,7 +73,7 @@ pub fn spawntask_later(f: ~fn()) {
73
73
74
74
let mut sched = local_sched:: take ( ) ;
75
75
let task = ~Coroutine :: with_task ( & mut sched. stack_pool ,
76
- Task :: without_unwinding ( ) ,
76
+ ~ Task :: without_unwinding ( ) ,
77
77
f) ;
78
78
79
79
sched. enqueue_task ( task) ;
@@ -90,7 +90,7 @@ pub fn spawntask_random(f: ~fn()) {
90
90
91
91
let mut sched = local_sched:: take ( ) ;
92
92
let task = ~Coroutine :: with_task ( & mut sched. stack_pool ,
93
- Task :: without_unwinding ( ) ,
93
+ ~ Task :: without_unwinding ( ) ,
94
94
f) ;
95
95
96
96
if run_now {
@@ -156,7 +156,7 @@ pub fn spawntask_thread(f: ~fn()) -> Thread {
156
156
let thread = do Thread :: start {
157
157
let mut sched = ~UvEventLoop : : new_scheduler ( ) ;
158
158
let task = ~Coroutine :: with_task ( & mut sched. stack_pool ,
159
- Task :: without_unwinding ( ) ,
159
+ ~ Task :: without_unwinding ( ) ,
160
160
f. take ( ) ) ;
161
161
sched. enqueue_task ( task) ;
162
162
sched. run ( ) ;
0 commit comments