All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luotao Fu <devtty0@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Strangeness in named Semaphores(xenomai posix skin)
Date: Fri, 21 Oct 2005 23:54:08 +0200	[thread overview]
Message-ID: <43596380.50506@domain.hid> (raw)
In-Reply-To: <17241.17423.857860.990465@domain.hid>

Hi,

Gilles Chanteperdrix wrote:
> Luotao Fu wrote:
>  > Hi folks,
>  > 
>  > I got the feeling, that named semaphores in xenomai posix skin don't
>  > work properly. I hacked some simple code to test this and attached the
>  > code to this mail, so that you might have a look of my problem yourself.
> 
> Thanks for reporting, you probably found a bug.

Thanks Gilles, as you surely have noticed, the sem_open() seems to work
properly, As sem_open() called from different threads returns identical
Pointeradresses to Semaphores with same Name. The magic cookie of the
semaphore structure seemed also be set correctly on
PSE51_NAMED_SEM_MAGIC. The Blocking and Unblocking in a single
Mainthread works also fine. What I found strange is that
sem_trywait_internal() don't return EAGAIN like it should, when called
by sem_wait() on a semaphore blocked by another thread. I'm trying to
rip my testcode further down to finer operational calls to locate the
failure. If I found anything interesting or even useful :-), I'll let
you know. It'll also be nice if you could send a mail, as soon as you
find/solve this problem.

> 
> I am on it.
> 

Thanx
Cheers

Luotao Fu


  reply	other threads:[~2005-10-21 21:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-21 15:57 [Xenomai-help] Strangeness in named Semaphores(xenomai posix skin) Luotao Fu
2005-10-21 19:39 ` Gilles Chanteperdrix
2005-10-21 21:54   ` Luotao Fu [this message]
2005-10-21 21:38 ` Gilles Chanteperdrix
2005-10-21 22:11   ` Luotao Fu
2005-10-22  7:27     ` 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=43596380.50506@domain.hid \
    --to=devtty0@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.