PTHREAD_GETTHREADID_NP(3)
π NAME
pthread_getthreadid_np β get the calling thread's integral ID. This is PTHREAD_GETTHREADID_NP(3) from the Library Functions Manual, and she is here to hand you that thread ID, okay bestie?
π LIBRARY
POSIX Threads Library (libpthread, -lpthread). That's the library, no cap. π«Ά
β¨ SYNOPSIS
#include <pthread_np.h>
int
pthread_getthreadid_np(void);
π¦ DESCRIPTION
Okay so pthread_getthreadid_np() returns the unique integral ID of the calling thread. Its semantics are similar to AIX's pthread_getthreadid_np() function β same kind of energy, iykyk. π
π RETURN VALUES
pthread_getthreadid_np() returns the thread integral ID of the calling thread. That's the return value, periodt. β¨
π ERRORS
None. Literally none. The error section is empty, bestie β no dramatic plot twist here. π
π SEE ALSO
π AUTHORS
This manual page was written by Jung-uk Kim <jkim@FreeBSD.org>. Iconic behavior, honestly. π«Ά
mwah π β this page is Debian, dated October 12, 2021, and it's serving PTHREAD_GETTHREADID_NP(3) energy.
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2011 Jung-uk Kim <jkim@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms