Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Re: time to sleep?

Re: time to sleep?

From: Björn Stenberg <bjorn_at_haxx.se>
Date: Thu, 22 Aug 2002 13:52:38 +0200

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
Received on 2002-08-22

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