[ECOS] question about condition variables

Nick Garnett nickg@redhat.com
Wed Feb 20 07:48:00 GMT 2002


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



More information about the Ecos-discuss mailing list