Changeset 66120 in vbox for trunk/src/VBox/Runtime/r3/win
- Timestamp:
- Mar 15, 2017 7:59:48 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/thread-win.cpp
r62592 r66120 30 30 *********************************************************************************************************************************/ 31 31 #define LOG_GROUP RTLOGGROUP_THREAD 32 #include <iprt/ win/windows.h>32 #include <iprt/nt/nt-and-windows.h> 33 33 34 34 #include <errno.h> … … 279 279 280 280 281 DECLHIDDEN(bool) rtThreadNativeIsAliveKludge(PRTTHREADINT pThread) 282 { 283 PPEB_COMMON pPeb = NtCurrentPeb(); 284 if (!pPeb || !pPeb->Ldr || !pPeb->Ldr->ShutdownInProgress) 285 return true; 286 DWORD rcWait = WaitForSingleObject((HANDLE)pThread->hThread, 0); 287 return rcWait != WAIT_OBJECT_0; 288 } 289 290 281 291 RTDECL(RTTHREAD) RTThreadSelf(void) 282 292 {
Note:
See TracChangeset
for help on using the changeset viewer.