[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] [RFC] Fix pthread timeout handling and cancellation issues
From: |
Samuel Thibault |
Subject: |
Re: [PATCH] [RFC] Fix pthread timeout handling and cancellation issues |
Date: |
Sun, 3 Feb 2013 01:52:20 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Richard Braun, le Sat 02 Feb 2013 16:44:20 +0100, a écrit :
> diff --git a/sysdeps/mach/hurd/pt-docancel.c b/sysdeps/mach/hurd/pt-docancel.c
> index 105c6fd..b3a5507 100644
> --- a/sysdeps/mach/hurd/pt-docancel.c
> +++ b/sysdeps/mach/hurd/pt-docancel.c
> @@ -36,6 +36,8 @@ __pthread_do_cancel (struct __pthread *p)
> assert (p->cancel_pending == 1);
> assert (p->cancel_state == PTHREAD_CANCEL_ENABLE);
>
> + __pthread_mutex_unlock (&p->cancel_lock);
You should probably document that __pthread_do_cancel now assumes that
the cancel_lock is taken on entry, and released. Apart from that, the
patch looks good to me.
Samuel