From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Steve Deiters <SteveDeiters@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Mixing skin calls (cancellation points)
Date: Mon, 02 Aug 2010 00:11:22 +0200 [thread overview]
Message-ID: <4C55F10A.4080908@domain.hid> (raw)
In-Reply-To: <4C34B898.6000803@domain.hid>
Gilles Chanteperdrix wrote:
> Steve Deiters wrote:
>>> I already answered that: yes, the thread will re-acquire the
>>> mutex. The pthread_cleanup_push/pthread_cleanup_pop services
>>> can be called from a native skin thread, they are part of the
>>> glibc, not of Xenomai posix skin, so you do not need to link
>>> against the Xenomai posix skin library.
>>>
>>> Anyway, the proper way to fix this, which we use in the POSIX
>>> skin, is to set the cancellation type to asynchronous just
>>> before calling rt_cond_wait, saving the previoys cancellation
>>> type, then restore the cancellation type after rt_cond_wait.
>> This is probably the best solution for me. Can I also use
>> pthread_setcanceltype without linking to the POSIX skin or is there some
>> method in the native skin to change the cancellation type? Can I assume
>> anything not wrapped in the posix.wrappers is provided by glibc?
>
> Ok. We will also fix this on Xenomai side.
>
Should be fixed with commit 7a39eff4ed5f9e4aa8acb111328b1343511e41ae
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=7a39eff4ed5f9e4aa8acb111328b1343511e41ae
--
Gilles.
prev parent reply other threads:[~2010-08-01 22:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-06 18:36 [Xenomai-help] Mixing skin calls (cancellation points) Steve Deiters
2010-07-06 18:41 ` Gilles Chanteperdrix
2010-07-06 19:03 ` Steve Deiters
2010-07-06 19:15 ` Gilles Chanteperdrix
2010-07-07 12:50 ` Gilles Chanteperdrix
2010-07-07 15:20 ` Steve Deiters
2010-07-07 16:36 ` Gilles Chanteperdrix
2010-07-07 16:55 ` Steve Deiters
2010-07-07 17:14 ` Gilles Chanteperdrix
2010-07-07 17:25 ` Gilles Chanteperdrix
2010-08-01 22:11 ` Gilles Chanteperdrix [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=4C55F10A.4080908@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=SteveDeiters@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.