NAME
thread_resume - resumes specified thread

SYNOPSIS
#include <mach.h>

kern_return_t thread_resume(target_thread)
thread_t target_thread;

ARGUMENTS
target_thread The thread to be resumed.

DESCRIPTION
Decrements the threads’s suspend count. If the count becomes zero
the thread is resumed. If it is still positive, the thread is left
suspended. The suspend count may not become negative.

DIAGNOSTICS
KERN_SUCCESS The thread has been resumed.

KERN_FAILURE The suspend count is already zero.

KERN_INVALID_ARGUMENT target_thread is not a thread.

SEE ALSO
task_suspend(2), task_resume(2), thread_info(2), thread_create(2),
thread_terminate(2), thread_suspend(2)