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

Re: cvs: firmware thread.c,1.27,1.28

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Sat, 01 May 2004 14:10:48 +0200

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
Received on 2004-05-01

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