On Tue, Jun 3, 2008 at 11:02 AM, Fabien MAHOT
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I tried your new patch and, now there is no longer issue of priority
> inheritance with a mutex. Thanks a lot for that.
>
> However, there are still problems with my big application. It still crashes.
>
> From the test program that you corrected (with check functions), I
> succeeded to reproduce them.
>
> Write function returns "Interrrupt system call" error (EINTR). this is
> normal.
>
> but I ve got the same error message with pthread_mutex_unlock. In the
> specification of this function, there is a note about that : "These
> functions shall not return an error code of [EINTR]." (these functions are
> pthread_mutex_lock, pthread_mutex_unlock, pthread_mutex_trylock)
Actually I do not know how this can happen, since the EINTR error is
trapped inside pthread_mutex_lock. Will try your example.
> void EndTimeOut (int signo,siginfo_t *info,void*context)
> {
> volatile int i, result = 0;
>
> DeleteTimer(((struct stTimeOut*)(info->si_value.sival_ptr))->timer_h);
This is incorrect, timer_delete is not async signal safe.
>
> StackWrite(((struct stTimeOut*)(info->si_value.sival_ptr))->number);
>
> check_unix(sem_post(&TimeOutWait_sem));
> }
--
Gilles
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help