All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <kiszka@domain.hid>
To: kai.m.moritz@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Problems with mutex
Date: Wed, 30 Nov 2005 13:29:20 +0100	[thread overview]
Message-ID: <438D9B20.5090609@domain.hid> (raw)
In-Reply-To: <438D993E.7010904@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 658 bytes --]

Kai Moritz wrote:
> Hello folks,
> 
> I'm using Xenomai 2.0.1 with Linux 2.6.14 and ipipe. I've a strange
> problem using mutex-locks. Repeted calls to rt_mutex_lock with
> TM_NONBLOCK on the same mutex return always 0, which means lock
> successfully aquired, if I understand the API-documentation right.
> I've attached a small programm to test that behavior and the
> log-messages it produces on my machine. Perhaps anyone has a hint, what
> I'm doing wrong...

Does the same thread lock this mutex over and over again (I did not look
at your code yet)? If so, note that mutexes can be acquired recursively
by the original owner.

Jan



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2005-11-30 12:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-30 12:21 [Xenomai-help] Problems with mutex Kai Moritz
2005-11-30 12:29 ` Jan Kiszka [this message]
2005-11-30 12:53   ` Kai Moritz

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=438D9B20.5090609@domain.hid \
    --to=kiszka@domain.hid \
    --cc=kai.m.moritz@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.