diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-06-10 07:45:56 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-06-10 07:45:56 +0000 |
commit | ee5d48553adde607b88bcbb1ac533d88f6a0207a (patch) | |
tree | e0a9ad909098c846e12a634b8d3b4111b24d9b6f /linuxthreads/join.c | |
parent | 7e6d3809908ca640e5334ced033d6f905783731a (diff) | |
download | glibc-ee5d48553adde607b88bcbb1ac533d88f6a0207a.zip glibc-ee5d48553adde607b88bcbb1ac533d88f6a0207a.tar.gz glibc-ee5d48553adde607b88bcbb1ac533d88f6a0207a.tar.bz2 |
Update.
2000-06-10 Ulrich Drepper <drepper@redhat.com>
* pthread.c (__pthread_create_2_1): Optimize a bit.
* internals.h (invalid_handle): Also test for p_terminated != 0.
(nonexisting_handle): New function. Same as old invalid_handle.
* join.c (pthread_join): Use nonexisting_handle instead of
invalid_handle to test for acceptable thread handle.
Reported by Permaine Cheung <pcheung@cygnus.com>.
Diffstat (limited to 'linuxthreads/join.c')
-rw-r--r-- | linuxthreads/join.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxthreads/join.c b/linuxthreads/join.c index 95c0ab6..adcac46 100644 --- a/linuxthreads/join.c +++ b/linuxthreads/join.c @@ -116,7 +116,7 @@ int pthread_join(pthread_t thread_id, void ** thread_return) extr.pu_extricate_func = join_extricate_func; __pthread_lock(&handle->h_lock, self); - if (invalid_handle(handle, thread_id)) { + if (nonexisting_handle(handle, thread_id)) { __pthread_unlock(&handle->h_lock); return ESRCH; } |