Rockbox mail archiveSubject: 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örnReceived on 2002-08-22