dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: question about plugin api extension
From: [IDC]Dragon (
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.


GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ +++


Page was last modified "Jan 10 2012" The Rockbox Crew