---
name: "pthread_resume_np"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/pthread_resume_np"
---

# pthread\_resume\_np(3)

resume suspended thread

## NAME

**pthread\_resume\_np** – resume suspended thread

## LIBRARY

POSIX Threads Library (libpthread, -lpthread)

## SYNOPSIS

**#include \<pthread\_np.h\>**

*int*\

**pthread\_resume\_np**(*pthread\_t tid*);

## DESCRIPTION

The **pthread\_resume\_np**() function, called on a suspended thread, causes it to resume. If a thread specified by the *tid* argument is not suspended, no actions will be performed.

## RETURN VALUES

If successful, **pthread\_resume\_np**() function returns 0. Otherwise, an error number is returned to indicate the error.

## ERRORS

The **pthread\_resume\_np**() function will fail if:

- \[EINVAL\]

  The value specified by the *tid* argument is invalid.

- \[ESRCH\]

  No thread could be found corresponding to the thread ID specified by the *tid* argument.

## SEE ALSO

[pthread\_attr\_setcreatesuspend\_np(3)](/pthread_attr_setcreatesuspend_np/3.md), [pthread\_np(3)](/pthread_np/3.md), [pthread\_resume\_all\_np(3)](/pthread_resume_all_np/3.md), [pthread\_suspend\_all\_np(3)](/pthread_suspend_all_np/3.md), [pthread\_suspend\_np(3)](/pthread_suspend_np/3.md)

## AUTHORS

This manual page was written by Alexey Zelkin ⟨*phantom@FreeBSD.org*⟩.
