This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: question about condition variables
- From: Nick Garnett <nickg at redhat dot com>
- To: Tom Coremans <tom dot coremans at acunia dot com>
- Cc: eCos users <ecos-discuss at sources dot redhat dot com>
- Date: 20 Feb 2002 15:44:38 +0000
- Subject: Re: [ECOS] question about condition variables
- References: <3C72317F.E5FCDD6C@acunia.com>
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