This is the mail archive of the ecos-discuss@sourceware.org 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]

Re: Waiting I/O operation


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


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