1
0
mirror of git://projects.qi-hardware.com/iris.git synced 2024-11-04 23:19:41 +02:00
iris/schedule.ccp

13 lines
232 B
Plaintext
Raw Normal View History

2009-05-20 23:07:56 +03:00
#pypp 0
#include "kernel.hh"
void schedule ():
2009-05-22 23:48:49 +03:00
Thread *old = current
2009-05-23 21:55:31 +03:00
current = current->schedule_next
2009-05-20 23:07:56 +03:00
if !current:
current = first_scheduled
2009-05-23 21:55:31 +03:00
if !current:
current = &idle
2009-05-22 23:48:49 +03:00
if old != current:
arch_schedule (old, current)