From 0f5504179a2e37a20e409c48dcc8d640393cd16d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 25 May 2000 06:15:25 +0000 Subject: Update. 2000-05-23 Jakub Jelinek * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf, __sincosl): Guard with __USE_GNU. --- linuxthreads/cancel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linuxthreads/cancel.c') diff --git a/linuxthreads/cancel.c b/linuxthreads/cancel.c index 067e3f65ed..a51e8ccfc3 100644 --- a/linuxthreads/cancel.c +++ b/linuxthreads/cancel.c @@ -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 -- cgit v1.2.1