PTHREAD_RESUME_NP(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’– 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 the tid argument is invalid πŸ™ˆ
  • [ESRCH] β€” no thread could be found corresponding to the thread ID specified by the tid argument πŸ’€

πŸ¦‹ SEE ALSO

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