From: Niels Wellens <niels.wellens@triphase.com>
To: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: [Xenomai] xeno3_rc3_alchemy What is the effect of rt_task_delete on a RT_SEM?
Date: Fri, 13 Mar 2015 16:57:14 +0100 [thread overview]
Message-ID: <1426262234.3156.18.camel@triphase.com> (raw)
Hi,
While porting our code to xeno3 I noticed that one of our tasks blocked
on a semaphore during exit (code worked on xeno 2.6.4 Native, some small
changes where needed for Alchemy but nothing fundamental). It seems that
deletion of a task that is waiting on a RT_SEM doesn't decrement the
nwaiters field of the semaphore. Afterwards, when I raise the semaphore,
the nwaiters decrement without releasing an existing task. Are there
some changes here in Xeno3? I looked in the migration guide but the only
remark about semaphores is for posix.
Please find in attachment a small working example with some comments in
the exit part of the code.
Thanks in advance!
Kind regards,
Niels
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: text/x-makefile
Size: 2140 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20150313/83310ade/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sem_test.c
Type: text/x-csrc
Size: 3443 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20150313/83310ade/attachment.c>
next reply other threads:[~2015-03-13 15:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-13 15:57 Niels Wellens [this message]
2015-03-13 18:30 ` [Xenomai] xeno3_rc3_alchemy What is the effect of rt_task_delete on a RT_SEM? Jan Kiszka
2015-03-15 16:22 ` Philippe Gerum
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=1426262234.3156.18.camel@triphase.com \
--to=niels.wellens@triphase.com \
--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.