Task control system.
More...
Detailed Description
Task control system.
- Author:
- Fredrik Eldh
Function Documentation
Initialise the task system.
- Parameters:
-
| max_tasks | Set the maximum amount of tasks. |
- Returns:
- Returns TRUE if all was well.
Dispose a specific task.
- Parameters:
-
Sets the current task stack size.
- Parameters:
-
| size | The size of the new current stack size |
| long CreateTask |
( |
char * |
TaskAddr, |
|
|
int |
p0, |
|
|
int |
p1 |
|
) |
| |
Create a new cooperative task.
- Parameters:
-
| TaskAddr | The address of the new task |
| p0 | The first parameter to be passed to the new task |
| p1 | The second parameter to be passed to the new task |
- Returns:
- Returns a positive taskid if all was well, null on error.
Execute all cooperative tasks.