All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [bug?] calling xnpod_delete_thread after      self-termination
Date: Wed, 30 Nov 2005 22:55:57 +0100	[thread overview]
Message-ID: <438E1FED.5040004@domain.hid> (raw)
In-Reply-To: <438E1DCA.7070607@domain.hid>

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

Philippe Gerum wrote:
> Jan Kiszka wrote:
> 
>> Hi all,
>>
>> as the subject already says: I face some warning of the nucleus (with
>> XENO_OPT_DEBUG on - useful switch) when I call xnpod_delete_thread for a
>> thread which has already terminated itself by leaving the thread
>> function. Is this double-deletion illegal? Or is it a cleanup-bug of the
>> nucleus?
> 
> 
> We could test the XNZOMBIE bit in xnpod_delete_thread() to prevent this,
> I guess.
> 

Would be better, I think. Otherwise, at least xnpod_delete_thread and
also rtdm_task_destroy would require a clear warning sign.

I was not aware of this restriction, so I did not worked around it in
RTnet - which is easy at RTDM level BTW: task wakeup for
self-termination + rtdm_task_join_nrt. This is cleaner anyway, so I will
patch RTnet now.

Jan

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

  reply	other threads:[~2005-11-30 21:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-30 20:13 [Xenomai-core] [bug?] calling xnpod_delete_thread after self-termination Jan Kiszka
2005-11-30 21:45 ` Philippe Gerum
2005-11-30 21:46 ` Philippe Gerum
2005-11-30 21:55   ` Jan Kiszka [this message]
2005-11-30 22:11     ` 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=438E1FED.5040004@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=rpm@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.