mirror of
git://projects.qi-hardware.com/iris.git
synced 2024-10-02 16:10:24 +03:00
13 lines
232 B
COBOL
13 lines
232 B
COBOL
#pypp 0
|
|
#include "kernel.hh"
|
|
|
|
void schedule ():
|
|
Thread *old = current
|
|
current = current->schedule_next
|
|
if !current:
|
|
current = first_scheduled
|
|
if !current:
|
|
current = &idle
|
|
if old != current:
|
|
arch_schedule (old, current)
|