---
name: "pthread_suspend_all_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_suspend_all_np"
---

# pthread\_suspend\_all\_np(3)

suspend all active threads

## NAME

**pthread\_suspend\_all\_np** – suspend all active threads

## LIBRARY

POSIX Threads Library (libpthread, -lpthread)

## SYNOPSIS

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

*void*\

**pthread\_suspend\_all\_np**(*void*);

## DESCRIPTION

The **pthread\_suspend\_all\_np**() function causes all active threads to be suspended. The only exception is the current thread, the thread that called the **pthread\_suspend\_all\_np**() function.

It is not safe for the caller of the **pthread\_suspend\_all\_np**() function to use any non-async signal safe functions, besides [pthread\_resume\_all\_np(3)](/pthread_resume_all_np/3.md), until threads are resumed, unless measures are taken to ensure that all threads are suspended at safe points.

## SEE ALSO

[pthread\_np(3)](/pthread_np/3.md), [pthread\_resume\_all\_np(3)](/pthread_resume_all_np/3.md), [pthread\_resume\_np(3)](/pthread_resume_np/3.md), [pthread\_suspend\_np(3)](/pthread_suspend_np/3.md)

## AUTHORS

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