— Function: kern_return_t
thread_terminate (
thread_t target_thread)
The function thread_terminate destroys the thread specified by
target_thread.
The function returns KERN_SUCCESS if the thread has been killed
and KERN_INVALID_ARGUMENT if target_thread is not a thread.