From: Ross Johnson <rpj@callisto.canberra.edu.au>
To: "'pthreads-win32@sources.redhat.com'"
<pthreads-win32@sources.redhat.com>
Subject: Re: pthread_cond_broadcast(...) leads to a deadlock
Date: Fri, 19 Nov 2004 07:47:00 -0000 [thread overview]
Message-ID: <419DA4F5.1070904@callisto.canberra.edu.au> (raw)
In-Reply-To: <715D092C2A9AD411B4DD006097C6EE8401482C8F@EXCHSVR>
Alex Kotliarov wrote:
> - any reason why pthread_mutex_lock (cleanup_args->mutexPtr) was moved
>to the top? Algorithm 8A has this line at the bottom of
> ptw32_cond_wait_cleanup()
>
>
>
I read, in an authoritative forum, that the external mutex is required
to be held during cv cancel cleanup. The cleanup routine is also part of
the normal cv wake-up logic but the change passed the test suite and so
it seemed safe. I don't know if it's still a potential conformance
problem, but this change obviously wasn't the solution.
The current version of pthread_cond_wait.c with the change undone is in CVS:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/pthreads/pthread_cond_wait.c?rev=1.8&content-type=text/plain&cvsroot=pthreads-win32
Apologies.
Ross
> Thanks,
>
> Alexander Kotliarov.
>
>
>
prev parent reply other threads:[~2004-11-19 7:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-18 16:26 Alex Kotliarov
2004-11-19 7:47 ` Ross Johnson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=419DA4F5.1070904@callisto.canberra.edu.au \
--to=rpj@callisto.canberra.edu.au \
--cc=pthreads-win32@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).