Added support for compiling C++ files. It isn't included for all
[AROS.git] / arch / .unmaintained / dummy / switch.c
blob998b6da14e8064c916ff19143a018bccd8a72523
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <exec/execbase.h>
7 #include <clib/exec_protos.h>
8 #include <machine.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);
19 Dispatch();