public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] cyg_thread_delay
@ 2001-07-14 19:01 Tony Ko
  2001-07-14 19:35 ` Fabrice Gautier
  0 siblings, 1 reply; 2+ messages in thread
From: Tony Ko @ 2001-07-14 19:01 UTC (permalink / raw)
  To: ecos-discuss

hi.

I understand cyg_thread_delay make current thread sleep.
then who are going to  wake the sleeped thread?

and after waken, the thread goes to READY mode or RUN mode ?

thanks in advance.

Tony.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] cyg_thread_delay
  2001-07-14 19:01 [ECOS] cyg_thread_delay Tony Ko
@ 2001-07-14 19:35 ` Fabrice Gautier
  0 siblings, 0 replies; 2+ messages in thread
From: Fabrice Gautier @ 2001-07-14 19:35 UTC (permalink / raw)
  To: Tony Ko; +Cc: ecos-discuss

On Sun, 15 Jul 2001 11:02:07 +0900
"Tony Ko" <nhko@gctsemi.com> wrote:

> hi.
> 
> I understand cyg_thread_delay make current thread sleep.
> then who are going to  wake the sleeped thread?

I think the code for this is in the clock DSR 

> and after waken, the thread goes to READY mode or RUN mode ?

First the DSR wake up the thread  so it's set to READY.

It maybe set to RUN whenever it is rescheduled, which may happened at
the end of the clock ISR, if the scheduler is not locked, and the thread
has an higher priority than any other READY thread.


-- 
Fabrice Gautier <gautier@email.enstfr>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-07-14 19:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-14 19:01 [ECOS] cyg_thread_delay Tony Ko
2001-07-14 19:35 ` Fabrice Gautier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).