- Timestamp:
- May 15, 2013 1:11:39 PM (12 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ConsoleVRDPServer.h
r44528 r46097 126 126 */ 127 127 void SendUpdate (unsigned uScreenId, void *pvUpdate, uint32_t cbUpdate) const; 128 void SendResize (void) const;128 void SendResize (void); 129 129 void SendUpdateBitmap (unsigned uScreenId, uint32_t x, uint32_t y, uint32_t w, uint32_t h) const; 130 130 … … 164 164 HVRDESERVER mhServer; 165 165 int mServerInterfaceVersion; 166 167 int32_t volatile mcInResize; /* Do not Stop the server if this is not 0. */ 166 168 167 169 static int loadVRDPLibrary (const char *pszLibraryName); -
trunk/src/VBox/Main/src-client/ConsoleVRDPServer.cpp
r45680 r46097 1333 1333 mhServer = 0; 1334 1334 mServerInterfaceVersion = 0; 1335 1336 mcInResize = 0; 1335 1337 1336 1338 m_fGuestWantsAbsolute = false; … … 2819 2821 mhServer = 0; 2820 2822 2823 /* Workaround for VM process hangs on termination. 2824 * 2825 * Make sure that the server is not currently processing a resize. 2826 * mhServer 0 will not allow to enter the server again. 2827 * Wait until any current resize returns from the server. 2828 */ 2829 if (mcInResize) 2830 { 2831 LogRel(("VRDP: waiting for resize %d\n", mcInResize)); 2832 2833 int i = 0; 2834 while (mcInResize && ++i < 100) 2835 { 2836 RTThreadSleep(10); 2837 } 2838 } 2839 2821 2840 if (mpEntryPoints && hServer) 2822 2841 { … … 3635 3654 } 3636 3655 3637 void ConsoleVRDPServer::SendResize(void) const3656 void ConsoleVRDPServer::SendResize(void) 3638 3657 { 3639 3658 if (mpEntryPoints && mhServer) 3640 3659 { 3660 ++mcInResize; 3641 3661 mpEntryPoints->VRDEResize(mhServer); 3662 --mcInResize; 3642 3663 } 3643 3664 }
Note:
See TracChangeset
for help on using the changeset viewer.