This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cyg_cond_wait() & select()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]