Is there such a thing as an invalid thread id?



I am creating a threaded application and just wish to return the thread
id to the calling function. I am looking to let the calling function
determine if pthread_create worked by the thread id.

I have a feeling that there is a thread id value that indicates an
invalid thread, such as 0 or -1. Could someone let me know if this is
true and if so what value indicates an invalid thread?

.



Relevant Pages