bug-hurd
[Top][All Lists]
Advanced

[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 10:41:08 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Samuel Thibault, le Sun 03 Feb 2013 01:52:20 +0100, a écrit :
> 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

is assumed* to be taken on entry, and released in __pthread_do_cancel

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]