VirtualBox

Changeset 3173 in kBuild for trunk/src/kmk/w32/w32os.c


Ignore:
Timestamp:
Mar 21, 2018 9:37:41 PM (7 years ago)
Author:
bird
Message:

kmkbultin: environment fixes and stats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/w32/w32os.c

    r3156 r3173  
    187187    /* Build array of handles to wait for.  */
    188188    dwHandleCount = 1 + process_set_handles (&handles[1]);
    189 #else
    190     /* Add the completed children event as the 2nd one. */
    191     handles[1] = (HANDLE)MkWinChildGetCompleteEventHandle();
    192     dwHandleCount = 2;
    193 #endif
    194 
    195189    dwEvent = WaitForMultipleObjects (
    196190        dwHandleCount,  /* number of objects in array */
     
    198192        FALSE,          /* wait for any object */
    199193        INFINITE);      /* wait until object is signalled */
     194#else
     195    /* Add the completed children event as the 2nd one. */
     196    handles[1] = (HANDLE)MkWinChildGetCompleteEventHandle();
     197    if (handles[1] == NULL)
     198      return 0;
     199    dwHandleCount = 2;
     200    dwEvent = WaitForMultipleObjectsEx (dwHandleCount,
     201                                        handles,
     202                                        FALSE /*bWaitAll*/,
     203                                        256, /* INFINITE - paranoia, only wait 256 ms before checking again. */
     204                                        TRUE /*bAlertable*/);
     205#endif
    200206
    201207    if (dwEvent == WAIT_FAILED)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette