comparison Doc/lib/libselect.tex @ 18479:dfb77422c607 2.1

Added information about the timeout parameter to the poll() method for polling objects. This closes SF bug #439823. Fixed a minor markup bug.
author Fred Drake <fdrake@acm.org>
date Wed, 11 Jul 2001 18:49:00 +0000
parents d137b94f3ddf
children 376ee174ecd0
comparison
equal deleted inserted replaced
18475:c99129a0a47d 18479:dfb77422c607
89 want to check for, and can be a combination of the constants 89 want to check for, and can be a combination of the constants
90 \constant{POLLIN}, \constant{POLLPRI}, and \constant{POLLOUT}, 90 \constant{POLLIN}, \constant{POLLPRI}, and \constant{POLLOUT},
91 described in the table below. If not specified, the default value 91 described in the table below. If not specified, the default value
92 used will check for all 3 types of events. 92 used will check for all 3 types of events.
93 93
94 \begin{tableii}{l|l}{code}{Constant}{Meaning} 94 \begin{tableii}{l|l}{constant}{Constant}{Meaning}
95 \lineii{POLLIN}{There is data to read} 95 \lineii{POLLIN}{There is data to read}
96 \lineii{POLLPRI}{There is urgent data to read} 96 \lineii{POLLPRI}{There is urgent data to read}
97 \lineii{POLLOUT}{Ready for output: writing will not block} 97 \lineii{POLLOUT}{Ready for output: writing will not block}
98 \lineii{POLLERR}{Error condition of some sort} 98 \lineii{POLLERR}{Error condition of some sort}
99 \lineii{POLLHUP}{Hung up} 99 \lineii{POLLHUP}{Hung up}
124 --- \constant{POLLIN} for waiting input, 124 --- \constant{POLLIN} for waiting input,
125 \constant{POLLOUT} to indicate that the descriptor can be written to, and 125 \constant{POLLOUT} to indicate that the descriptor can be written to, and
126 so forth. 126 so forth.
127 An empty list indicates that the call timed out and no file 127 An empty list indicates that the call timed out and no file
128 descriptors had any events to report. 128 descriptors had any events to report.
129 If \var{timeout} is given, it specifies the length of time in
130 milliseconds which the system will wait for events before returning.
131 If \var{timeout} is omitted, negative, or \code{None}, the call will
132 block until there is an event for this poll object.
129 \end{methoddesc} 133 \end{methoddesc}
130 134
131 135