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



Rockbox mail archive

Subject: Re: cvs: firmware thread.c,1.27,1.28
From: Linus Nielsen Feltzing (linus_at_haxx.se)
Date: 2004-05-01


J?rg Hohensohn wrote:
> +/*---------------------------------------------------------------------------
> + * Remove a thread from the scheduler.
> + * Parameter is the ID as returned from create_thread().
> + *---------------------------------------------------------------------------
> + */
> +void remove_thread(int threadnum)

Jörg,

I think you need to adjust current_thread as well, so it

a) isn't out of range

b) is pointing to the currently running thread

Also, I don't see you handling the case when a thread is deleting itself.

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



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