[ECOS] from ISR to thread

Robin Farine acnrf@dial.eunet.ch
Fri Dec 7 05:57:00 GMT 2001


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



More information about the Ecos-discuss mailing list