This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: from ISR to thread
Nick Garnett <nickg@redhat.com> writes:
[...]
> By using the DSR lock we ensure that the DSR cannot get called between
> testing the ringbuffer and the cond_wait. Threads can wait with the
> DSR lock claimed and if there is a pending DSR when the thread waits,
> it will be woken up immediately and continue.
Ah, now I see the trick that avoids races between threads and DSRs.
[...]
Thanks,
Robin