Adds a thread to the front of the running queue so it will be scheduled next
(thread: Box<Thread>)
| 319 | /// Adds a thread to the front of the running queue |
| 320 | /// so it will be scheduled next |
| 321 | pub fn schedule_thread(thread: Box<Thread>) { |
| 322 | // Turn off interrupts while modifying process table |
| 323 | interrupts::without_interrupts(|| { |
| 324 | RUNNING_QUEUE.write().push_front(thread); |
| 325 | }); |
| 326 | } |
| 327 | |
| 328 | |
| 329 | /// Takes ownership of the current Thread |
no test coverage detected