@CHIP-RTOS C Library V2.00 - RTOS API
RTX_Wakeup
Wake up a task expected to be waiting within a
RTX_Sleep_Request or
RTX_Sleep_Time call. int RTX_Wakeup ( int taskID ); Parameters
taskID
- Task handle returned from
RTX_Create_Task or
RTX_Create_Task_Without_Run.
Return Value
- 0, success
non-zero --> error code.
Comments
- If the task is not currently sleeping, then the RTOS sets a "wakeup pending"
flag for the respective task such that on the next call the task makes
to one of the sleep functions it will return ("wake up") immediately.
An immediate task switch will occur if the task being wakened is of
higher priority than the current task.
See Also
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|