Changeset 49938 in vbox for trunk/src/VBox/Main/src-server/win
- Timestamp:
- Dec 16, 2013 5:13:59 PM (11 years ago)
- Location:
- trunk/src/VBox/Main/src-server/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/win/HostPowerWin.cpp
r46775 r49938 54 54 /* Is this allowed from another thread? */ 55 55 SetWindowLongPtr(mHwnd, 0, 0); 56 /* Send the quit message and wait for it be processed. */57 SendMessage(mHwnd, WM_QUIT, 0, 0);56 /* Poke the thread out of the event loop and wait for it to clean up. */ 57 PostMessage(mHwnd, WM_QUIT, 0, 0); 58 58 RTThreadWait(mThread, 5000, NULL); 59 59 mThread = NIL_RTTHREAD; … … 114 114 115 115 MSG msg; 116 while (GetMessage(&msg, NULL, 0, 0)) 116 BOOL fRet; 117 while ((fRet = GetMessage(&msg, NULL, 0, 0)) != 0) 117 118 { 118 TranslateMessage(&msg); 119 DispatchMessage(&msg); 119 if (fRet != -1) 120 { 121 TranslateMessage(&msg); 122 DispatchMessage(&msg); 123 } 124 else 125 { 126 // handle the error and possibly exit 127 break; 128 } 120 129 } 121 130 } -
trunk/src/VBox/Main/src-server/win/svcmain.cpp
r47525 r49938 5 5 6 6 /* 7 * Copyright (C) 2004-201 2Oracle Corporation7 * Copyright (C) 2004-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 57 57 58 58 const DWORD dwTimeOut = 5000; /* time for EXE to be idle before shutting down */ 59 const DWORD dwPause = 100 0; /* time to wait for threads to finish up */59 const DWORD dwPause = 100; /* time to wait for threads to finish up */ 60 60 61 61 /* Passed to CreateThread to monitor the shutdown event */
Note:
See TracChangeset
for help on using the changeset viewer.