No. pthread_create () does not know that the thread pointer passed to it was dynamically allocated. pthreads does not use this value internally; it just returns the new thread id to the caller. You do not need to dynamically highlight this value; you can pass the address of a local variable:
pthread_t thread;
pthread_create(&thread, NULL, someFunction, someArgument);
source
share