On Mon, May 19, 2008 at 5:48 PM, Fabien MAHOT <[EMAIL PROTECTED]> wrote: > Thanks a lot for your answer, > > I add a mutex in my StackWrite function. What happens when the EndTimeOut > routine is in process and a new time-out signal occurs? The EndTimeOut > processing finished ?
Actually locking a mutex in a signal handler is strictly forbiden. So, you should implement EndTimeOut so that it does not lock any mutex (implicitly or explicitly). > > I also add an external variable to the condition variable. > > I try to use rt_printf() instead of calling my Display function. The > compilation is OK, but when I execute my test program, there is no trace > on the screen (I use rt_printf() like printf()). (I ve got rtdk.h and > librtdk.so) > I would like to try with this function ... Maybe what you want is rather rt_fprintf(stderr) ? > > In spite of these modifications, the system always crashes > > I am not running my program under X-window. I ve got a screen on the VGA > port of my target. As I told you, I think the crash is due to the value of info->si_value.sival_ptr in EndTimeOut. Did you check this value ? -- Gilles _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
