|
@@ -124,7 +124,7 @@ int pthread_join(pthread_t thread_id, void ** thread_return)
|
|
|
extr.pu_extricate_func = join_extricate_func;
|
|
extr.pu_extricate_func = join_extricate_func;
|
|
|
|
|
|
|
|
__pthread_lock(&handle->h_lock, self);
|
|
__pthread_lock(&handle->h_lock, self);
|
|
|
- if (invalid_handle(handle, thread_id)) {
|
|
|
|
|
|
|
+ if (nonexisting_handle(handle, thread_id)) {
|
|
|
__pthread_unlock(&handle->h_lock);
|
|
__pthread_unlock(&handle->h_lock);
|
|
|
return ESRCH;
|
|
return ESRCH;
|
|
|
}
|
|
}
|
|
@@ -190,7 +190,7 @@ int pthread_detach(pthread_t thread_id)
|
|
|
pthread_descr th;
|
|
pthread_descr th;
|
|
|
|
|
|
|
|
__pthread_lock(&handle->h_lock, NULL);
|
|
__pthread_lock(&handle->h_lock, NULL);
|
|
|
- if (invalid_handle(handle, thread_id)) {
|
|
|
|
|
|
|
+ if (nonexisting_handle(handle, thread_id)) {
|
|
|
__pthread_unlock(&handle->h_lock);
|
|
__pthread_unlock(&handle->h_lock);
|
|
|
return ESRCH;
|
|
return ESRCH;
|
|
|
}
|
|
}
|