All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johann Obermayr <johann.obermayr@domain.hid>
To: jan.kiszka@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rt_task_delete trouble
Date: Fri, 11 Mar 2011 10:59:55 +0100	[thread overview]
Message-ID: <4D79F29B.6020207@domain.hid> (raw)
In-Reply-To: <4D79E43D.2040807@domain.hid>

Am 11.03.2011 09:58, schrieb Jan Kiszka:
> On 2011-03-11 09:51, Gilles Chanteperdrix wrote:
>> Johann Obermayr wrote:
>>> void task_waiter_do(void *data)
>>> {
>>>       rt_printf("task_waiter_do started\n");
>>>       while(task_waiter_flag == 0)
>>>           ; // rt_task_sleep( DELAYMS(1) );
>>>       rt_printf("task_waiter_do finished\n");
>>> }
>> What happens if you uncomment the rt_task_sleep here ?
>>
> Given how often users make this mistake, should we enable the watchdog
> by default?
>
> Jan
>
We have a watchdog, and your watchdod-task suspend the user-task 
(task_waiter_do).
the sample show this problem.
The task_worker_do is a watchdog. he control some other 'user-task'.
In your project, the watchdog startup the watchdog-task.
the task_worker_do suspend the user-task.
the task_worker_do will delete the user-task.

if the user-task have only while(1); than the machine will hang.
if the user-task have in the while a sleep or other function,
the task_worker_do can delete the task_waiter, and all work correct.

   Jimmy

-- 
Mit freundlichen Grüßen, best regards
     Johann Obermayr

Software Entwicklung
________________________________________________
SIGMATEK GmbH&  Co KG
Sigmatekstraße 1
5112 Lamprechtshausen
Österreich / Austria

Tel.  :  +43 / 6274/ 43 21-0   (Durchwahl leider nicht möglich)
Fax   :  +43 / 6274/ 43 21-18  (bzw 300 im Werk 2 )
E-Mail: johann.obermayr@domain.hid
http://www.sigmatek-automation.com
****************************Please note:********************************
  This email and all attachments are confidential and intended solely for
  the person or entity to whom it is addressed. If you are not the named
  addressee you must not make this email and all attachments accessible
  to any other person. If you have received this email in error please
  delete it together with all attachments.
************************************************************************



  parent reply	other threads:[~2011-03-11  9:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11  8:28 [Xenomai-help] rt_task_delete trouble Johann Obermayr
2011-03-11  8:51 ` Gilles Chanteperdrix
2011-03-11  8:58   ` Jan Kiszka
2011-03-11  9:06     ` Gilles Chanteperdrix
2011-03-11  9:59     ` Johann Obermayr [this message]
2011-03-11  9:52   ` Johann Obermayr
2011-03-11  9:56     ` Gilles Chanteperdrix
2011-03-11 13:13     ` Gilles Chanteperdrix
2011-03-11 10:59   ` Johann Obermayr

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=4D79F29B.6020207@domain.hid \
    --to=johann.obermayr@domain.hid \
    --cc=jan.kiszka@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.