This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: Unix friendly Idle loop
- To: jskov at cygnus dot co dot uk (Jesper Skov)
- Subject: Re: [ECOS] Unix friendly Idle loop
- From: lunn at ma dot tech dot ascom dot ch (Andrew Lunn)
- Date: Wed, 29 Sep 1999 13:01:00 +0200 (MET DST)
- Cc: lunn at ma dot tech dot ascom dot ch, ecos-discuss at sourceware dot cygnus dot com
> Sounds like a good idea. Two (minor) problems that need attention
> though:
>
> In case CYGIMP_IDLE_THREAD_YIELD is defined, the idle thread loop
> shouldn't hang (as the select would).
But we want select to hang or we don't save anything. We need to be
able to interrupt the select when an event happens that could cause a
thread to become runable. For the Synthetic target i beleave this can
only happen with a signal. Shouldn't select exist when a signal goes
off?
> But you should definitely try it and see how it works. Let us know.
Will do.
Andrew