- Timestamp:
- Feb 11, 2008 1:12:27 PM (17 years ago)
- Location:
- trunk/src/VBox/Additions/x11/xclient
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/xclient/seamless-host.cpp
r6783 r6897 67 67 68 68 /** Stops the service. */ 69 void VBoxGuestSeamlessHost::stop( void)69 void VBoxGuestSeamlessHost::stop(unsigned cMillies /* = RT_INDEFINITE_WAIT */) 70 70 { 71 71 if (!mRunning) /* Assertion */ … … 74 74 return; 75 75 } 76 mThread.stop( 0, 0);76 mThread.stop(cMillies, 0); 77 77 VbglR3CtlFilterMask(0, VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST); 78 78 VbglR3SeamlessSetCap(false); -
trunk/src/VBox/Additions/x11/xclient/seamless-host.h
r6893 r6897 136 136 int start(void); 137 137 138 /** Stops the service. */ 139 void stop(void); 138 /** 139 * Stops the service. 140 * @param cMillies how long to wait for the thread to exit 141 */ 142 void stop(unsigned cMillies = RT_INDEFINITE_WAIT); 140 143 141 144 /** Returns the current state of the host - i.e. requesting seamless or not. */ … … 163 166 try 164 167 { 165 stop( );168 stop(2000); 166 169 } 167 170 catch(...) {} -
trunk/src/VBox/Additions/x11/xclient/seamless.h
r6290 r6897 23 23 #include "seamless-glue.h" 24 24 25 /** Thread function class for VBoxGuestSeamless X11. */25 /** Thread function class for VBoxGuestSeamlessGuest. */ 26 26 class VBoxGuestSeamlessGuestThread: public VBoxGuestThreadFunction 27 27 { -
trunk/src/VBox/Additions/x11/xclient/thread.cpp
r6893 r6897 20 20 #include "thread.h" 21 21 22 /** Stop the thread using its stop method and get the exit value. 23 * @returns iprt status code 24 * @param cMillies The number of milliseconds to wait. Use RT_INDEFINITE_WAIT for 25 * an indefinite wait. Only relevant if the thread is 26 * waitable. 27 * @param prc Where to store the return code of the thread. Optional. 28 */ 22 /** Stop the thread using its stop method and get the exit value. */ 29 23 int VBoxGuestThread::stop(unsigned cMillies, int *prc) 30 24 { … … 61 55 try 62 56 { 63 stop( 1000, 0);57 stop(2000, 0); 64 58 } 65 59 catch(...) {}
Note:
See TracChangeset
for help on using the changeset viewer.