Re: pthread_join
Re: pthread_join
- Subject: Re: pthread_join
- From: Eric Albert <email@hidden>
- Date: Thu, 9 Sep 2004 00:39:23 -0700
On Sep 8, 2004, at 11:49 PM, Marc Van Olmen wrote:
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.
ERRORS
pthread_join() will fail if:
[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.
-----
Hope this helps,
Eric
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.
References: | |
| >pthread_join (From: Marc Van Olmen <email@hidden>) |