NAME
thread_terminate - destroys specified thread
SYNOPSIS
#include <mach.h>
kern_return_t
thread_terminate(target_thread)
thread_t target_thread;
ARGUMENTS
target_thread The thread to be destroyed.
DESCRIPTION
thread_terminate destroys the thread specified by
target_thread.
DIAGNOSTICS
KERN_SUCCESS The thread has been killed.
KERN_INVALID_ARGUMENT target_thread is not a thread.
SEE ALSO
task_terminate(2), task_threads(2), thread_create(2),
thread_resume(2), thread_suspend(2)