This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
cyg_cond_wait() & select()
- From: Dmitry Ryzhkov <rdim_outside at softhome dot net>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 5 Mar 2002 00:30:50 +0100
- Subject: [ECOS] cyg_cond_wait() & select()
- Reply-to: rdim_outside at softhome dot net
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)?
Thanks!
rdim
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss