VirtualBox

Changeset 37309 in vbox


Ignore:
Timestamp:
Jun 3, 2011 8:36:12 AM (14 years ago)
Author:
vboxsync
Message:

rtThreadNativeDestroy: Close the native thread handle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/thread-win.cpp

    r37155 r37309  
    8888    if (pThread == (PRTTHREADINT)TlsGetValue(g_dwSelfTLS))
    8989        TlsSetValue(g_dwSelfTLS, NULL);
     90
     91    if (pThread->hThread != INVALID_HANDLE_VALUE)
     92    {
     93        CloseHandle(pThread->hThread);
     94        pThread->hThread = INVALID_HANDLE_VALUE;
     95    }
    9096}
    9197
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