Thanks for all of your ideas.
I solve my issue.

On 5/14/07, Gilles Chanteperdrix <[EMAIL PROTECTED]> wrote:

Fillod Stephane wrote:
> Perrine Martignoni wrote:
> [..]
> >int DESTRUCT=0;
>
> I'm always nervous to see global variables shared among threads without
> a volatile keyword. An explicit memory barrier would be better, as it
> has been re-explained in a LWN article lately (wait Thursday for free
access)
> http://lwn.net/Articles/233479/

Besides, this termination mechanism results on a deadlock on SMP. Please
kill this DESTRUCT variable and replace cleanup_upon_sig with:

void cleanup_upon_sig(int sig __attribute__((unused)))

{
       pthread_cancel(task1);
       pthread_cancel(task2);
}


--


                                           Gilles Chanteperdrix.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to