Main Page | Data Structures | File List | Data Fields | Globals
Short Term Loadsbusiness loans Equipment Financing Small Business Loans SBA Loans best business loans Long Term Loans Merchant Cash Advances Big Lines of Credit Working Capital

opale_task.c File Reference

#include "opale_internal.h"

Include dependency graph for opale_task.c:

Include dependency graph

Go to the source code of this file.

Functions

short op_TaskStart (register t_TASK *task asm("£"), register void(*taskEntryFunction)(register void *asm(" ")) asm("¢"), register char *stackPointer asm("¡"), register unsigned char ident asm("Ð"), register void *taskFunctionArgs asm(" "))
void op_TaskStop (void)
void op_TaskWaitForTicks (register unsigned short ticks asm("Ð"))


Function Documentation

short op_TaskStart register t_TASK *task   asm("£"),
register   void(*)(register void *asm(" ")) asm taskEntryFunction("¢"),
removeTaskFromTable(), and runningTasks.

Here is the call graph for this function:

void op_TaskWaitForTicks register unsigned short ticks   asm("Ð")  ) 
 

Make a task wait for a number of ticks. A tick occurs each time the int 5 is called. The task will be made ready to run when the given time has expired and it is the highest priority task ready to run.

Parameters:
ticks (d0.w) Number of ticks to wait for.
Definition at line 63 of file opale_task.c.

References currentTask, t_TASK::ident, idleTask, t_TASK::nextSleeping, op_EnterCriticalSection, op_ExitCriticalSection, op_Scheduler, t_TASK::prevSleeping, readyTasks, removeTaskFromTable(), and t_TASK::tickDelay.

Here is the call graph for this function:


Generated on Sat Jul 30 21:49:21 2005 for Opale by doxygen 1.3.8
/a>.

Referenced by op_KernelInit().

Here is the call graph for this function:

void op_TaskStop void   ) 
 

Stops the current task. Use it at the end of a task function when you want to end it. Remember task functions shall not return, so if you want to quit one of those, use op_TaskStopDefinition at line 45 of file opale_task.c.

References currentTask, t_TASK::ident, op_EnterCriticalSection, op_ExitCriticalSection, op_Scheduler, readyTasks,