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.oberm...@sigmatek.at
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.
************************************************************************


_______________________________________________
Xenomai-help mailing list
Xenomai-help@gna.org
https://mail.gna.org/listinfo/xenomai-help

Reply via email to