PTHREAD_GETTHREADID_NP(3)

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

πŸ’… 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