Checking this in before I pull the thread code out to its own file.

This commit is contained in:
Jason Travis Smith
2016-03-25 02:45:34 -04:00
parent b83c3970a6
commit 01f9b49498
13 changed files with 862 additions and 31 deletions

View File

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