21 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
22 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 |
* |
* |
24 |
* $Id: portab.h,v 1.60 2010-03-09 10:00:14 Isibaar Exp $ |
* $Id$ |
25 |
* |
* |
26 |
****************************************************************************/ |
****************************************************************************/ |
27 |
|
|
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 |
|
|