![]() ZBasic System Library
272
ZBasic Microcontrollers
Type
Subroutine
Invocation
RunTask(taskStack)
RunTask()
Parameter
Method
Type
Description
taskStack
ByRef
array of Byte
The stack for a task of interest.
Discussion
Calling this routine alters the normal task rotation regimen by immediately attempting to run the specified
task or, if no task stack is explicitly given, the Main() task. If the specified task cannot run (because it is
sleeping, waiting for InputCapture, etc.) the list of tasks is examined in order beginning with the task
immediately following the specified task and the first ready-to-run task that is found will be run.
Because this routine interferes with the normal task rotation it must be used carefully to avoid starving out
one or more tasks. If this routine is invoked using an array other than one that is or was being used for a
task stack the result is undefined.
See the section on Task Management in the ZBasic Reference Manual for additional information
regarding task management.
Compatibility
This routine is not available in BasicX compatibility mode.
See Also
|