libcore: Make a couple of constructors public. rs=testfixing
This commit is contained in:
parent
e6f53c091e
commit
ca3bc644f4
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue