Back to Darwin Xnu

Task Resume

osfmk/man/task_resume.html

latest942 B
Original Source

task_resume


Function - Decrement the target task's suspend count.

SYNOPSIS

**kern\_return\_t task\_resume**** (task\_t **task** );**

PARAMETERS

task[in task send right] The port to the task to be resumed.

DESCRIPTION

The task_resume function decrements the suspend count for task. If the task's suspend count goes to zero, the function resumes any suspended threads within the task. To resume a given thread, the thread's own suspend count must also be zero.

NOTES

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

RETURN VALUES

Only generic errors apply.

Functions: task_create, task_info, task_suspend, task_terminate, thread_info, thread_resume, thread_suspend.