90 |
#elif defined(__amigaos4__) |
#elif defined(__amigaos4__) |
91 |
|
|
92 |
# include <pthread.h> |
# include <pthread.h> |
93 |
# include <proto/dos.h> |
# include <proto/exec.h> |
94 |
# define sched_yield() IDOS->Delay(1) |
|
95 |
|
static __inline void amiga_yield(void) |
96 |
|
{ |
97 |
|
/* SetTaskPri() on the currently running task triggers a reschedule */ |
98 |
|
struct Task *me = IExec->FindTask(NULL); |
99 |
|
IExec->SetTaskPri(me, me->tc_Node.ln_Pri); |
100 |
|
} |
101 |
|
# define sched_yield() amiga_yield() |
102 |
|
|
103 |
#elif defined(SYS_BEOS) |
#elif defined(SYS_BEOS) |
104 |
|
|