On Tue, May 13, 2008 at 10:26 AM, Jan Kiszka <[EMAIL PROTECTED]> wrote:
>  @@ -1236,6 +1236,9 @@ void xnpod_delete_thread(xnthread_t *thr
>                 xnthread_cleanup_tcb(thread);
>
>                 xnarch_finalize_no_switch(xnthread_archtcb(thread));
>  +
>  +               if (xnthread_test_state(sched->runthread, XNROOT))
>  +                       xnfreesync();
>         }

No, this does not look good. The point of deferring TCB freeing is
that the TCB will be accessed shortly after it is freed.

IMHO, the right solution is to add a call to xnpod_schedule or even
directly xnfreesyng in the right place (in skins code, after all
threads have been freed)

-- 
 Gilles

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

Reply via email to