This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Deadly embrace between pthread_cond_wait and pthread_cond_signal
- To: cygwin-patches at cygwin dot com
- Subject: Re: Deadly embrace between pthread_cond_wait and pthread_cond_signal
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Thu, 21 Jun 2001 14:26:02 -0400
- References: <3B3181E5.E6F0D06A@nc.rr.com> <01da01c0fa5f$1bfe6d70$0200a8c0@lifelesswks>
- Reply-To: cygwin-patches at cygwin dot com
On Fri, Jun 22, 2001 at 12:33:15AM +1000, Robert Collins wrote:
>Correct a deadlock situation...
>Changelog:
>2001-06-22 Robert Collins rbtcollins@hotmail.com
>
> * thread.cc (__pthread_cond_timedwait): Lock the waiting mutex
>before the condition protect mutex to avoid deadlocking.
> (__pthread_cond_wait): Ditto.
>
>
>Greg, as far as speed goes, there is a major optimisation I want to
>make, which is to make all process private mutex's critical sections,
>instead of system wide mutex's. This should be a lot faster... when I
>get that done :].
Looks good.
I'm somewhat computer handicapped this week. Can you check this in yourself,
Robert?
cgf