1
0
mirror of git://projects.qi-hardware.com/iris.git synced 2024-07-02 20:41:05 +03:00
iris/schedule.ccp
Bas Wijnen 12637f5695 more
2009-05-22 22:48:49 +02:00

14 lines
244 B
COBOL

#pypp 0
#include "kernel.hh"
void schedule ():
Thread *old = current
if current:
current = current->schedule_next
if !current:
current = first_scheduled
if !current:
current = &idle
if old != current:
arch_schedule (old, current)