Lines Matching refs:ready
101 * directly if you need to block until a file descriptor is ready, but
142 DWORD ready;
154 ready = MsgWaitForMultipleObjectsEx (nhandles, handles, timeout,
157 if (ready == WAIT_FAILED)
168 ready = WAIT_FAILED;
172 ready = WAIT_TIMEOUT;
183 ready = WaitForMultipleObjectsEx (nhandles, handles, FALSE, timeout, TRUE);
184 if (ready == WAIT_FAILED)
194 ready,
195 (ready == WAIT_FAILED ? " (WAIT_FAILED)" :
196 (ready == WAIT_TIMEOUT ? " (WAIT_TIMEOUT)" :
197 (poll_msgs && ready == WAIT_OBJECT_0 + nhandles ? " (msg)" : ""))));
199 if (ready == WAIT_FAILED)
201 else if (ready == WAIT_TIMEOUT ||
202 ready == WAIT_IO_COMPLETION)
204 else if (poll_msgs && ready == WAIT_OBJECT_0 + nhandles)
222 else if (ready >= WAIT_OBJECT_0 && ready < WAIT_OBJECT_0 + nhandles)
226 if ((HANDLE) f->fd == handles[ready - WAIT_OBJECT_0])
241 if (ready < nhandles - 1)
242 for (i = ready - WAIT_OBJECT_0 + 1; i < nhandles; i++)
382 int ready;
405 ready = select (maxfd + 1, &rset, &wset, &xset,
407 if (ready > 0)
422 return ready;