From: Nicholas Mc Guire <der.herr@hofr.at>
To: Jo?l Kr?hemann <joel@weedlight.ch>
Cc: linux-rt-users@vger.kernel.org
Subject: Re: BUG - pthread conditional locks and barriers not reliable
Date: Mon, 8 Apr 2013 08:20:48 +0200 [thread overview]
Message-ID: <20130408062048.GA24078@opentech.at> (raw)
In-Reply-To: <1364521778.8491.4.camel@debian>
On Fri, 29 Mar 2013, Jo?l Kr?hemann wrote:
> Hi, finished with euphoria. It's an issue with pthread implementation
> may be you have to extend kernel API to fix this problem. You can't wrap
> pthread_barrier_wait with pthread_mutex_lock and pthread_mutex_unlock
> because it has a race condition what ends probably in a deadlock.
>
are you using a PI mutex ? the POSIX spec actually explicitly states that
barriers are not inversion free so for a non-PI mutex that could cause deadlocks
in combination with mutexes. If you are not using PI could you give it a shot-
if that fixes it ?
thx!
hofrat
prev parent reply other threads:[~2013-04-08 6:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-28 8:22 BUG - pthread conditional locks and barriers not reliable Joël Krähemann
2013-03-29 1:31 ` Joël Krähemann
2013-03-29 1:49 ` Joël Krähemann
2013-04-08 6:20 ` Nicholas Mc Guire [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=20130408062048.GA24078@opentech.at \
--to=der.herr@hofr.at \
--cc=joel@weedlight.ch \
--cc=linux-rt-users@vger.kernel.org \
/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 NNTP newsgroup(s).