2005-07-01 20:01:33 +02:00
|
|
|
#include "syslib.h"
|
|
|
|
|
|
|
|
/*===========================================================================*
|
2005-07-19 14:24:51 +02:00
|
|
|
* sys_nice *
|
2005-07-01 20:01:33 +02:00
|
|
|
*===========================================================================*/
|
2005-07-19 14:24:51 +02:00
|
|
|
PUBLIC int sys_nice(int proc, int prio)
|
2005-07-01 20:01:33 +02:00
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
2009-09-05 14:51:00 +02:00
|
|
|
m.PR_ENDPT = proc;
|
|
|
|
m.PR_PRIORITY = prio;
|
2005-07-19 14:24:51 +02:00
|
|
|
return(_taskcall(SYSTASK, SYS_NICE, &m));
|
2005-07-01 20:01:33 +02:00
|
|
|
}
|