matask.h File Reference


Functions

int maRunTaskInit (int SP, int p0, int p1)
int maRunTask (int SP)
void maYield (void)
void maKillTask (void)
int InitTasks (int max_tasks)
 Initialise the task system.
void DisposeTasks (void)
 Dispose the task system.
void DisposeTask (short task)
 Dispose a specific task.
void SetTaskStackSize (int size)
 Sets the current task stack size.
long CreateTask (char *TaskAddr, int p0, int p1)
 Create a new cooperative task.
void RunAllTasks (void)
 Execute all cooperative tasks.


Function Documentation

int maRunTaskInit int  SP,
int  p0,
int  p1
 

int maRunTask int  SP  ) 
 

void maYield void   ) 
 

void maKillTask void   ) 
 

int InitTasks int  max_tasks  ) 
 

Initialise the task system.

Parameters:
max_tasks Set the maximum amount of tasks.
Returns:
Returns TRUE if all was well.

void DisposeTasks void   ) 
 

Dispose the task system.

void DisposeTask short  task  ) 
 

Dispose a specific task.

Parameters:
task The task to dispose.

void SetTaskStackSize int  size  ) 
 

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.

void RunAllTasks void   ) 
 

Execute all cooperative tasks.


Generated on Sat Feb 13 00:15:38 2010 for MoSync 2 beta 1 by  doxygen 1.4.6-NO