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: 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 "Jan 10 2012" The Rockbox Crew
aaa