VirtualBox

Changeset 66120 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Mar 15, 2017 7:59:48 PM (8 years ago)
Author:
vboxsync
Message:

IPRT/RTThreadWait: Quick and dirty workaround for Ctrl-C deadlock with VirtualBox.exe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/thread.h

    r62477 r66120  
    180180DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread);
    181181
     182#ifdef IN_RING3
     183/**
     184 * Called to check whether the thread is still alive or not before we start
     185 * waiting.
     186 *
     187 * This is a kludge to deal with windows threads being killed wholesale in
     188 * certain process termination scenarios and we don't want to hang the last
     189 * thread because it's waiting on the semaphore of a dead thread.
     190 *
     191 * @returns true if alive, false if not.
     192 * @param   pThread         The thread structure.
     193 */
     194DECLHIDDEN(bool) rtThreadNativeIsAliveKludge(PRTTHREADINT pThread);
     195#endif
     196
    182197#ifdef IN_RING0
    183198/**
Note: See TracChangeset for help on using the changeset viewer.

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