21,11 → 21,11 |
|
/** |
------------ |
CVS : $Id: func.h,v 1.7 2003-05-01 19:45:34 pj Exp $ |
CVS : $Id: func.h,v 1.8 2003-07-22 11:57:01 giacomo Exp $ |
|
File: $File$ |
Revision: $Revision: 1.7 $ |
Last update: $Date: 2003-05-01 19:45:34 $ |
Revision: $Revision: 1.8 $ |
Last update: $Date: 2003-07-22 11:57:01 $ |
------------ |
|
Kernel functions: |
537,7 → 537,7 |
void task_preempt(void); |
|
/*+ sends a message to the scheduling module that is handling the task +*/ |
int task_message(void *m, int reschedule); |
int task_message(void *m, PID p, int reschedule); |
|
/*+ This function signals to the kernel that the current istance of |
the task (periodic or aperiodic) is ended; so the task can be |
545,9 → 545,18 |
depending on the task model +*/ |
extern __inline__ void task_endcycle(void) |
{ |
task_message(NULL, 1); |
task_message(NULL, exec_shadow, 1); |
} |
|
/*+ This function signals to the kernel that the current istance of |
the task (periodic or aperiodic) is ended; so the task can be |
suspended until it is activated again. Pending activations may be saved |
depending on the task model +*/ |
extern __inline__ void task_disable(PID p) |
{ |
task_message((void *)(1), p, 0); |
} |
|
/*+ This primitives refers the group id which is supplied |
by the application, not by the kernel +*/ |
int group_activate(WORD g); |