mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2000-05-23 Jakub Jelinek <jakub@redhat.com> * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf, __sincosl): Guard with __USE_GNU.
This commit is contained in:
@ -58,14 +58,14 @@ int pthread_cancel(pthread_t thread)
|
||||
|
||||
__pthread_lock(&handle->h_lock, NULL);
|
||||
if (invalid_handle(handle, thread)) {
|
||||
__pthread_spin_unlock(&handle->h_lock);
|
||||
__pthread_unlock(&handle->h_lock);
|
||||
return ESRCH;
|
||||
}
|
||||
|
||||
th = handle->h_descr;
|
||||
|
||||
if (th->p_canceled) {
|
||||
__pthread_spin_unlock(&handle->h_lock);
|
||||
__pthread_unlock(&handle->h_lock);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -85,7 +85,7 @@ int pthread_cancel(pthread_t thread)
|
||||
th->p_woken_by_cancel = dorestart;
|
||||
}
|
||||
|
||||
__pthread_spin_unlock(&handle->h_lock);
|
||||
__pthread_unlock(&handle->h_lock);
|
||||
|
||||
/* If the thread has suspended or is about to, then we unblock it by
|
||||
issuing a restart, instead of a cancel signal. Otherwise we send
|
||||
|
Reference in New Issue
Block a user