This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Doubt on cyg_semaphore_timed_wait
- From: Reji P Rajesh <rejip at cdotb dot ernet dot in>
- To: Nick Garnett <nickg at ecoscentric dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Mon, 9 Jun 2003 16:59:24 +0500 (GMT+0500)
- Subject: Re: [ECOS] Doubt on cyg_semaphore_timed_wait
Hi Nick,
I have traced code on cyg_semphore_timed_wait system call.
My doubt is on the file cnt_sem.cxx, and line number 147.
Here the currently running thread calls
set_timer(timeout,Cyg_Thread::TIMEOUT), which will cause currently
running thread be
taken out from multi level run queue and state of thread is changed to
(RUNNING + SLEEPING). My doubt is, how this thread will be brought back
into multilevel run queue, other than the timeout?.More precisely,
when/how this thread's wake_reason be set to NONE.
thanks in advance,
reji
On 9 Jun 2003, Nick Garnett wrote:
> Reji P Rajesh <rejip@cdotb.ernet.in> writes:
>
> > Hi,
> > Can anybody describes how cyg_semaphore_timed_wait system call on
> > counting semaphore works?
> >
>
> You have the source, use it. Nobody is going to just explain this kind
> of thing for you without any evidence that you have made some effort
> to understand it for yourself.
>
> If you have a specific question about the code then ask it, and maybe
> someone might answer it.
>
> --
> Nick Garnett eCos Kernel Architect
> http://www.ecoscentric.com/ The eCos and RedBoot experts
>
>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss