Checking this in before I pull the thread code out to its own file.
This commit is contained in:
@ -8,5 +8,11 @@ use apprentice::*;
|
||||
|
||||
pub fn main()
|
||||
{
|
||||
println!("Hello world");
|
||||
let mut scheduler: Scheduler;
|
||||
|
||||
scheduler = Scheduler::new(None, Some(4));
|
||||
scheduler.queue_task(Task::new("Test"));
|
||||
scheduler.process_tasks(true);
|
||||
scheduler.process_tasks(true);
|
||||
//scheduler.process_tasks(true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user