Multithreaded Programming Guide

Return Values

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