comp.lang.ada
 help / color / mirror / Atom feed
* Blocking I/O and Ravenscar
@ 2007-09-21 21:08 Maciej Sobczak
  2007-09-22  4:31 ` Jeffrey R. Carter
  0 siblings, 1 reply; 8+ messages in thread
From: Maciej Sobczak @ 2007-09-21 21:08 UTC (permalink / raw)


Basically, Ravenscar forbids any blocking operations except waiting on
a protected entry or a suspension object.

How can I perform a blocking I/O without breaking this restriction?

Let's say I would like to read a byte from a socket.
An entry with the simple barrier Is_Ready can do the job in terms of
the interface, but implementation-wise it only pushes the problem away
- who will set the Is_Ready flag after the byte is actually read from
the blocking physical device and put in the buffer? A separate task?
It would need to be non-Ravenscar - there seems to be a chicken&egg
problem here.

--
Maciej Sobczak
http://www.msobczak.com/




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

end of thread, other threads:[~2007-09-24 13:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-21 21:08 Blocking I/O and Ravenscar Maciej Sobczak
2007-09-22  4:31 ` Jeffrey R. Carter
2007-09-22 21:17   ` Maciej Sobczak
2007-09-23 18:03     ` Surfer
2007-09-23 19:58       ` Surfer
2007-09-23 20:43       ` Maciej Sobczak
2007-09-24  9:03       ` Ole-Hjalmar Kristensen
2007-09-24 13:59         ` Surfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox