diff options
| -rw-r--r-- | src/libcore/rt/sched.rs | 4 | ||||
| -rw-r--r-- | src/libcore/rt/thread.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/rt/sched.rs b/src/libcore/rt/sched.rs index 69cbbdd2ad4..60dbc8b82da 100644 --- a/src/libcore/rt/sched.rs +++ b/src/libcore/rt/sched.rs @@ -70,7 +70,7 @@ enum CleanupJob { pub impl Scheduler { - static fn new(event_loop: ~EventLoopObject) -> Scheduler { + static pub fn new(event_loop: ~EventLoopObject) -> Scheduler { Scheduler { event_loop: event_loop, task_queue: WorkQueue::new(), @@ -296,7 +296,7 @@ pub struct Task { } impl Task { - static fn new(stack_pool: &mut StackPool, start: ~fn()) -> Task { + static pub fn new(stack_pool: &mut StackPool, start: ~fn()) -> Task { // XXX: Putting main into a ~ so it's a thin pointer and can // be passed to the spawn function. Another unfortunate // allocation diff --git a/src/libcore/rt/thread.rs b/src/libcore/rt/thread.rs index be1d86c9cf7..5dccf90096e 100644 --- a/src/libcore/rt/thread.rs +++ b/src/libcore/rt/thread.rs @@ -20,7 +20,7 @@ struct Thread { } impl Thread { - static fn start(main: ~fn()) -> Thread { + static pub fn start(main: ~fn()) -> Thread { fn substart(main: &fn()) -> *raw_thread { unsafe { rust_raw_thread_start(&main) } } |
