Re: [ECOS] Miss calling ASR in sched.cxx

Huang Yi <[email protected]>
Newsgroups gmane.os.ecos.devel
Message-ID <[email protected]>
2011/4/22 kiron <[email protected]>:
> When enable both CYGSEM_KERNEL_SCHED_ASR_SUPPORT and
> CYGIMP_KERNEL_INTERRUPTS_DSRS, consider that local variable call_asr
> is set to true and clear the asr_pending flag of current thread, but
> has DSRs_pending. It will continue the while loop and the call_asr's
> value is re-initialized to false, code path will miss to call ASR.
>
> Posix timer use ASR to deliver signal,If missing to call ASR, and
> signal will not been delivered. Unfortunately, posix time subsystem
> don't try to reset the asr_pending flag (see alarm_action() in
> packages/compat/posix/current/src/time.cxx), and the timer was
> disarmed forever (If it is a interval timer).
>
> here is a small patch to fix this.
>
> Huang Yi
> ------------------------

Anybody can review this patch? or I should send the mail to another mail list?

-- 
Huang Yi (kiron)
-------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.