## 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.

### RELATED INFORMATION

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