This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: cyg_cond_wait() & select()
- From: Gary Thomas <gthomas at redhat dot com>
- To: rdim_outside at softhome dot net
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 04 Mar 2002 16:38:51 -0700
- Subject: Re: [ECOS] cyg_cond_wait() & select()
- References: <02030500305000.01086@d6239.upc-d.chello.nl>
On Mon, 2002-03-04 at 16:30, Dmitry Ryzhkov wrote:
> Hi All,
>
> Does anybody know how to force thread wait for more than one conditional
> variable? Present ecos doc says that current thread can only be awakened by
> cyg_cond_signal() or cyg_cond_braodcast() ON THE SAME conditional variable.
> [cyg_cond_wait() description]
>
> The question is: is there any alternative, similar to unix select() call for
> instance to put thread to wait state until one of defined conditions occures.
> Well, select() isn't maybe the best example because it is intended for file
> operations, but the general idea remains the same - wait for one of
> conditions, preferably during some timeout.
>
> If there is no direct mechanism, is there any workaround (except additional
> global which could indicate some subtype of condition)?
>
Check out "kernel flags" - they'll do just what you're looking for.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss