This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: question about condition variables


Tom Coremans <tom.coremans@acunia.com> writes:

> Hi,
> 
> is it possible to signal a specific thread to stop waiting on a
> condition variable while there are also other threads waiting on it?
> 

You can cause a thread to break out of any wait it is in with
cyg_thread_release(). In the case of condition variables, the thread
will reacquire the mutex before returning from cyg_cond_wait(). You
can detect that it was released by the return value of cyg_cond_wait()
being false.

-- 
Nick Garnett, eCos Kernel Architect
Red Hat, Cambridge, UK


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]