SIO_ready
2-402
C Interface
Syntax
status = SIO_ready(stream);
Parameters
SIO_Handle stream;
Return Value
Int
status;
/* result of operation */
Description
SIO_ready returns TRUE if a stream is ready for input or output.
If you are using SIO objects with SWI threads, you may want to use
SIO_ready to avoid calling SIO_reclaim when it may fail because no
buffers are available.
SIO_ready is similar to SIO_select, except that it does not block. You can
prevent SIO_select from blocking by setting the timeout to zero, however,
SIO_ready is more efficient because SIO_select performs SEM_pend
with a timeout of zero. SIO_ready simply polls the stream to see if the
device is ready.
See Also
SIO_ready
Determine if device for stream is ready