Returns the calling thread's ID.
Threads Library (libpthreads.a)
#include <pthread.h>
pthread_t pthread_self (void);
The pthread_self subroutine returns the calling thread's ID.
The calling thread's ID is returned.
No errors are defined.
The pthread_self function will not return an error code of EINTR.
The pthread_create (pthread_create Subroutine) subroutine, pthread_equal (pthread_equal Subroutine) subroutine.
The pthread.h file.
Creating Threads in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
Threads Library Quick Reference in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.