@CHIP-RTOS C Library - RTOS API
Kill the specified task.
The killed task remains in the system and can be restarted.
int RTX_Kill_Task ( int taskID );
- Task handle returned from
- 0, success
non-zero --> error code.
- This function will force a ready, executing or suspended task to end.
All requests for task execution pending at the time of the kill request
will be erased.
A task can kill itself.
You should not delete or kill a task which is waiting on a
or Event Group.
Same goes for a task that is in possession of
a resource type semaphore. Also the consequences of killing a task that had
acquired a counting semaphore must be considered.
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
for more details.
- RTX API Overview
Supported since or modified in @CHIP-RTOS version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document