[ECOS] Re: Waiting I/O operation
Alexey Shusharin
mrfinch@mail.ru
Thu Jul 19 09:53:00 GMT 2007
cetoni GmbH - Uwe Kindler wrote:
> In my opinion you should go with the second thread solution.
Maybe. But in this variant I have a delay in receiving messages and
useless processor working. :-( It seems that it will be better if I
donate a memory for the second thread.
> I don't know if it is allowed to use flags from within DSRs but I
> believe you can not use them and then also a callback solution would not
> solve your problem. Your callback would need to wakup a "service thread"
> that would signal the flag to the waiting thread - but then you would
> also need two threads.
Why I can't use flags in DSR?
I think, I can't wait in DSR but I'm able to use cyg_flag_setbits() for
wake-up thread. And my thread will call cyg_flag_wait() for waiting this
and some other flags.
Regards,
Alexey
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list