PTHREAD_RESUME_NP(3)
π NAME
okay so this is PTHREAD_RESUME_NP(3), straight outta the Library Functions Manual, and the function is pthread_resume_np β resume suspended thread. Thatβs the name vibe, bestie: suspended thread, meet the resume button. β¨
π§ LIBRARY
POSIX Threads Library (libpthread, -lpthread) β she lives here π«Ά
β¨ SYNOPSIS
#include <pthread_np.h>
int
pthread_resume_np(pthread_t tid);
πΈ DESCRIPTION
okay so when you call pthread_resume_np() on a suspended thread, it causes that thread to resume. Thatβs the main character move π
If a thread specified by the tid argument is not suspended, no actions will be performed. literally nothing happens β no side quest, no drama, no resume π¦
π RETURN VALUES
If successful, pthread_resume_np() returns 0. Otherwise, an error number is returned to indicate the error β so check that number, bestie π
π₯ ERRORS
The pthread_resume_np() function will fail if:
[EINVAL]β the value specified by thetidargument is invalid π[ESRCH]β no thread could be found corresponding to the thread ID specified by thetidargument π
π¦ SEE ALSO
pthread_attr_setcreatesuspend_np(3)pthread_np(3)pthread_resume_all_np(3)pthread_suspend_all_np(3)pthread_suspend_np(3)
go read these next, bestie ππ
π AUTHORS
This manual page was written by Alexey Zelkin <phantom@FreeBSD.org>. iconic behavior, honestly π
footer vibes: source/version Debian, date October 12, 2021, page PTHREAD_RESUME_NP(3) β periodt, bestie π
π₯
π¦ 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