SELECT_READ_LUN Procedure (UNIX)
Waits for input on any of a list of logical unit numbers.
note | This function will not work when a PV-WAVE Widget application is running. This is due to an interaction between the event loop and the PV-WAVE facility used to detect input on a file descriptor. |
Usage
SELECT_READ_LUN, luns
Input Parameters
luns—A vector of logical unit numbers.
Output Parameters
luns—A vector of logical unit numbers.
Keywords
Timeout—Amount of time, in seconds, this procedure should block while waiting for input. This may be a floating-point number. The default is to block forever.
Widget—If present and nonzero, selects the X11 socket. If there is no X11 input, then the value of this keyword is set to –1.
Description
This procedure checks for input on all the logical unit numbers specified in the luns vector. When it returns, those unit numbers without input are set to –1. By default, this procedure blocks forever waiting for input. Keyword Timeout can be used to reduce the time the procedure blocks. This procedure always returns when any one of the listed LUNs has input to be read.
This procedure is an interface to the select_read_lun C routine in the io.so shared library.
See Also
Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.