public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Re:  Waiting I/O operation
@ 2007-07-19  8:47 cetoni GmbH - Uwe Kindler
  2007-07-19  9:53 ` Alexey Shusharin
  0 siblings, 1 reply; 16+ messages in thread
From: cetoni GmbH - Uwe Kindler @ 2007-07-19  8:47 UTC (permalink / raw)
  To: ecos-discuss; +Cc: Alexey Shusharin

Hello Alexey,

In my opinion you should go with the second thread solution. If you use 
callbacks, then this callback will be called from the CAN I/O driver in 
DSR context. If your thread waits for multiple events then you need to 
use flags to signal the received CAN event.

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.

Or what would you do in this callback to wake up the thead - maybe I 
missed something?

Regards, Uwe





-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2007-07-23 18:49 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-19  8:47 [ECOS] Re: Waiting I/O operation cetoni GmbH - Uwe Kindler
2007-07-19  9:53 ` Alexey Shusharin
2007-07-19 10:39   ` cetoni GmbH - Uwe Kindler
2007-07-19 10:56     ` Alexey Shusharin
2007-07-19 10:41   ` Alexey Shusharin
2007-07-19 10:47   ` Sergei Gavrikov
2007-07-20 19:35     ` Andrew Lunn
2007-07-21 11:22       ` Sergei Gavrikov
2007-07-21 13:21       ` Uwe Kindler
2007-07-21 15:11         ` Sergei Gavrikov
2007-07-21 15:25           ` Sergei Gavrikov
2007-07-23  4:10           ` Alexey Shusharin
2007-07-23  5:53             ` Uwe Kindler
2007-07-23  9:12             ` Sergei Gavrikov
2007-07-23 10:15               ` Alexey Shusharin
2007-07-23 18:49                 ` Sergei Gavrikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).