Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: question about plugin api extension

Re: question about plugin api extension

From: [IDC]Dragon <idc-dragon_at_gmx.de>
Date: Tue, 2 Mar 2004 08:11:22 +0100 (MET)

> 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
Received on 2004-03-02

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy