From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Anders Blomdell <anders.blomdell@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] What have I misunderstood about condition variables
Date: Wed, 12 Mar 2008 00:00:43 +0100 [thread overview]
Message-ID: <18391.3867.521099.955604@domain.hid> (raw)
In-Reply-To: <47D6DD05.2040007@domain.hid>
Anders Blomdell wrote:
> Gilles Chanteperdrix wrote:
> > On Tue, Mar 11, 2008 at 7:19 PM, Anders Blomdell
> >> To me the symptoms indicate that the high priority producer gets the mutex and
> >> signals it before the consumer has properly started to wait on the condition.
> >
> > I have not read your program in detail, but what may be your problem
> > is that condition variables are not semaphores: if you signal a
> > condition variable when nobody is waiting the signal is lost.
> I know this, but the problem is that the program loses signals when it is
> waiting. In the consumer:
Sorry for the noise (and thanks for the patch).
--
Gilles Chanteperdrix.
next prev parent reply other threads:[~2008-03-11 23:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-11 18:19 [Xenomai-help] What have I misunderstood about condition variables Anders Blomdell
2008-03-11 18:27 ` Gilles Chanteperdrix
2008-03-11 19:27 ` Anders Blomdell
2008-03-11 20:13 ` [Xenomai-core] " Anders Blomdell
2008-03-12 14:14 ` Philippe Gerum
2008-03-11 23:00 ` Gilles Chanteperdrix [this message]
2008-03-12 12:00 ` Anders Blomdell
2008-03-12 13:11 ` Gilles Chanteperdrix
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=18391.3867.521099.955604@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=anders.blomdell@domain.hid \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.