Rockbox.org home
releases
current build
extras FAQ
manual
wiki
docs index mailing lists
IRC
forums bugs
patches



Rockbox mail archive

Subject: Re: question about plugin api extension
From: [IDC]Dragon (idc-dragon_at_gmx.de)
Date: 2004-03-02


> Why an own thread? seems a little complicated. The whole thing can be
> managed in a state machine way.
> Don't you think we can do everything with interrupts?

We should not do so. It is not safe to call API function from interrupts,
gives a terrible latency for other interrupts with lower priority, gives
stacksize problems, etc.

A thread which receives messages from the ISRs is the clean way. But even
with threads we have to be careful (I think), only call functions which are
reentrant or have been mutex-ed.

Jörg

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++

_______________________________________________ http://cool.haxx.se/mailman/listinfo/rockbox



Page was last modified "Mar 9 2008" The Rockbox Crew