Lines Matching defs:handles
449 HANDLE signal, handle, handles[2];
454 /* retrieve handles from internal structure */
458 handles[0] = data->abort;
459 handles[1] = handle;
478 while(WaitForMultipleObjectsEx(1, handles, FALSE, 0, FALSE)
514 while(WaitForMultipleObjectsEx(2, handles, FALSE, INFINITE, FALSE)
543 while(WaitForMultipleObjectsEx(1, handles, FALSE, 0, FALSE)
577 if(WaitForMultipleObjectsEx(2, handles, FALSE, INFINITE, FALSE)
631 HANDLE abort, signal, handle, *handles;
674 /* allocate internal array for the internal event handles */
675 handles = calloc(nfds + 1, sizeof(HANDLE));
676 if(!handles) {
683 /* loop over the handles in the input descriptor sets */
690 handles[nfd] = 0;
720 handles[nfd] = signal;
732 handles[nfd] = GetStdHandle(STD_OUTPUT_HANDLE);
736 handles[nfd] = GetStdHandle(STD_ERROR_HANDLE);
747 handles[nfd] = (HANDLE)wsaevent;
774 handles[nfd] = signal;
790 /* wait on the number of handles */
795 /* we allocated handles nfds + 1 for this */
796 handles[nfd] = exit_event;
800 /* wait for one of the internal handles to trigger */
801 wait = WaitForMultipleObjectsEx(wait, handles, FALSE, timeout_ms, FALSE);
810 /* loop over the internal handles returned in the descriptors */
814 handle = handles[i];
886 free(handles);