Back to Darwin Xnu

Thread Resume

osfmk/man/thread_resume.html

latest913 B
Original Source

thread_resume


Function - Resume a thread.

SYNOPSIS

**kern\_return\_t thread\_resume**** (thread\_act\_t **target\_thread** );**

PARAMETERS

target_thread[in thread send right] The thread to be resumed.

DESCRIPTION

The thread_resume function decrements the suspend count for target_thread by one. The thread is resumed if its suspend count goes to zero. If the suspend count is still positive, thread_resume must be repeated until the count reaches zero.

NOTES

An attempt to lower the suspend count below zero is ignored.

RETURN VALUES

Only generic errors apply.

Functions: task_resume, task_suspend, thread_create, thread_info, thread_suspend, thread_terminate.