Multithreaded Programming Guide

pthread_self Return Values

pthread_self() returns the thread identifier of the calling thread.