comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Non-Blocking I/O
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Non-Blocking I/O [message #14304 is a reply to message #14301] Thu, 11 February 1999 00:00 Go to previous message
ashmall is currently offline  ashmall
Messages: 14
Registered: October 1998
Junior Member
Just a thought, but would an FSTAT on the unit number give you any information
as to whether there was data waiting to be read?

Justin


In article <36C2E662.F81D5072@Physik.Uni-Marburg.De>, Ruediger Kupper
<Ruediger.Kupper@Physik.Uni-Marburg.De> wrote:
> Hi!
>
> This is a question regarding Inter Process Communication
> (IPC) in a UNIX environment:
>
> Is there any way to tell IDL not to wait for the next
> incoming data when reading from a file?
> Attempting to read from an IPC channel (a pipe or fifo)
> using READF or READU will cause IDL to hang until this read
> attempt is successful. (Pipes or fifos do not produce an
> EOF-signal unless they are explicitely closed by all sending
> processes.) This blocking behaviour is undesired if you need
> to check more than one IPC channel for any waiting data, or
> if you want to incorporate such a check into an event loop.
>
> The only solution I can think of is to provide support for
> non-blocking I/O by a set of C-routines which could be
> linked to IDL via CALL_EXTAERNAL, but I would prefer using
> any "pure IDL" concept.
>
> If anyone out there ran into the same problem, this person
> could make a poor, frustrated IDL-programmer very happy by
> posting me a little hint...
>
> Best regards,
> Ruediger.
>
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Setting IDLgrPolyline vertex colours?
Next Topic: Non-Blocking I/O

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 12:06:45 PDT 2025

Total time taken to generate the page: 1.04147 seconds