libcore: Make a couple of constructors public. rs=testfixing

This commit is contained in:
Patrick Walton 2013-03-19 20:37:53 -07:00
parent e6f53c091e
commit ca3bc644f4
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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) }
}