Home |
RTKernel-32 Programming Manual Function RTKDelay |
Function RTKDelayRTKDelay blocks the calling task for the specified time span and allows other tasks to run. void RTKDelay(RTKDuration Ticks); ParametersTicksSpecifies the number of timer ticks the task must be blocked. Please note that the actual time interval of suspension will lie in the range [(Ticks-1) .. Ticks], depending on how long ago the last timer interrupt occurred. If RTKDelay is called with Ticks <= 0, RTKernel-32 checks whether other tasks with the same or a higher priority are ready. If a ready task with higher priority is found (this can only happen during cooperative scheduling), it is activated. Otherwise, if tasks with the same priority are ready, the task not having run longest is activated. Thus, RTKDelay(0) can be used to implement round-robin scheduling, also known as cooperative time slicing. Time slicing need not be enabled for this purpose.
|