[ECOS] cyg_cond_wait() & select()

Dmitry Ryzhkov rdim_outside@softhome.net
Mon Mar 4 15:38:00 GMT 2002


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



More information about the Ecos-discuss mailing list