pthread_getthreadid_np(3)

pthread_getthreadid_np3

Get the calling thread's integral id

Usage

#include <pthread_np.h>

int

pthread_getthreadid_np(void);

Library

POSIX Threads Library (libpthread, -lpthread)

Overview

The pthread_getthreadid_np() function returns the unique integral ID of the calling thread. Its semantics is similar to the AIX's pthread_getthreadid_np() function.

Return values

The pthread_getthreadid_np() function returns the thread integral ID of the calling thread.

Errors

None.

Releases

34 releases since FreeBSD 9.0-RELEASE; the text changed 21 times.

  1. 9.0
  2. 9.1
  3. 9.2
  4. 9.3
  5. 10.0
  6. 10.1
  7. 10.2
  8. 10.3
  9. 10.4
  10. 11.0
  11. 11.1
  12. 11.2
  13. 11.3
  14. 11.4
  15. 12.0
  16. 12.1
  17. 12.2
  18. 12.3
  19. 12.4
  20. 13.0
  21. 13.1–13.2
  22. 13.3–16.0

Authors

This manual page was written by Jung-uk Kim ⟨[email protected]⟩.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.