2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 #include <exec/execbase.h>
7 #include <clib/exec_protos.h>
10 void _switch(struct ExecBase
*SysBase
)
12 struct Task
*me
=SysBase
->ThisTask
;
14 if(me
->tc_State
==TS_RUN
&&!(me
->tc_Flags
&TF_EXCEPT
))
16 me
->tc_State
=TS_READY
;
17 Enqueue(&SysBase
->TaskReady
,&me
->tc_Node
);