File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ enum CleanupJob {
70
70
71
71
pub impl Scheduler {
72
72
73
- static fn new( event_loop: ~EventLoopObject ) -> Scheduler {
73
+ static pub fn new( event_loop: ~EventLoopObject ) -> Scheduler {
74
74
Scheduler {
75
75
event_loop : event_loop ,
76
76
task_queue : WorkQueue :: new ( ) ,
@@ -296,7 +296,7 @@ pub struct Task {
296
296
}
297
297
298
298
impl Task {
299
- static fn new( stack_pool: & mut StackPool , start: ~fn ( ) ) -> Task {
299
+ static pub fn new( stack_pool: & mut StackPool , start: ~fn ( ) ) -> Task {
300
300
// XXX: Putting main into a ~ so it's a thin pointer and can
301
301
// be passed to the spawn function. Another unfortunate
302
302
// allocation
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ struct Thread {
20
20
}
21
21
22
22
impl Thread {
23
- static fn start( main: ~fn ( ) ) -> Thread {
23
+ static pub fn start( main: ~fn ( ) ) -> Thread {
24
24
fn substart ( main : & fn ( ) ) -> * raw_thread {
25
25
unsafe { rust_raw_thread_start ( & main ) }
26
26
}
You can’t perform that action at this time.
0 commit comments