We have a class that has a protected pthread_t variable. Once that class has been constucted, the pthread_t exists, but it hasn't had an ID assigned to it which is what pthread_create does.
Is it OK to call pthread_join on the pthread_t variable in this case?
If I understand the man page for pthread_join correctly it should return a ESRCH error but this man page can be interpreted differently.