On Sep 8, 2004, at 11:49 PM, Marc Van Olmen wrote: ERRORS pthread_join() will fail if: Hope this helps, Eric _______________________________________________ darwin-development mailing list | darwin-development@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development Do not post admin requests to the list. They will be ignored. Are there cases pthread_join doesn't work? Yes, so you should check the return value. From the man page: ----- RETURN VALUES If successful, the pthread_join() function will return zero. Otherwise an error number will be returned to indicate the error. [EINVAL] The implementation has detected that the value speci- fied by thread does not refer to a joinable thread. [ESRCH] No thread could be found corresponding to that speci- fied by the given thread ID, thread. [EDEADLK] A deadlock was detected or the value of thread speci- fies the calling thread. -----
participants (1)
-
Eric Albert