PTHREAD_SUSPEND_ALL_NP(3)
πΈ NAME πΈ
Okay bestie, this is PTHREAD_SUSPEND_ALL_NP(3) from the Library Functions Manual, and the function is pthread_suspend_all_np β suspend all active threads. That's the whole name vibe. Periodt.
β¨ LIBRARY β¨
POSIX Threads Library (libpthread, -lpthread) π
π SYNOPSIS π
#include <pthread_np.h>
void
pthread_suspend_all_np(void);
π¦ DESCRIPTION π¦
So pthread_suspend_all_np() does exactly what the name says: it causes all active threads to be suspended. The only exception is the current thread β the thread that called the pthread_suspend_all_np() function. She gets to stay awake, main character energy and all π
.
Big warning, no cap: it is not safe for the caller ofpthread_suspend_all_np()to use any non-async signal safe functions, besidespthread_resume_all_np(3), until threads are resumed β unless measures are taken to ensure that all threads are suspended at safe points. Like, do not play games with this one, bestie π.
π SEE ALSO π
π AUTHORS π
This manual page was written by Alexey Zelkin <phantom@FreeBSD.org> π«Ά.
Cute little sign-off: this page's source/version energy is Debian, dated October 12, 2021 β PTHREAD_SUSPEND_ALL_NP(3) out, stay safe while your threads are suspended, mwah πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2003 Alexey Zelkin <phantom@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms