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: time to sleep?
From: Björn Stenberg (bjorn_at_haxx.se)
Date: 2002-08-22


Daniel Stenberg wrote:
> o We add a new thread with only one purpose: go to sleep when all tasks have
> done their "important" stuff.

Do we really want to make the threads do any more than sleep/yield/queue_wait when they are ready to go to sleep?

I suggest we make the scheduler a tad more advanced, rather than make each thread more complex. So the thread code looks the same, but threads are not scheduled until their sleep() or queue_wait() is complete.

-- 
Björn



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