This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: cyg_cond_wait() & select()
> >
> > 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.
Thanks a lot! I'll try it immidiately!
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss