VirtualBox

Changeset 6897 in vbox for trunk


Ignore:
Timestamp:
Feb 11, 2008 1:12:27 PM (17 years ago)
Author:
vboxsync
Message:

Additions/x11: VBoxClient cleanups and sanity fixes

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  
    6767
    6868/** Stops the service. */
    69 void VBoxGuestSeamlessHost::stop(void)
     69void VBoxGuestSeamlessHost::stop(unsigned cMillies /* = RT_INDEFINITE_WAIT */)
    7070{
    7171    if (!mRunning)  /* Assertion */
     
    7474        return;
    7575    }
    76     mThread.stop(0, 0);
     76    mThread.stop(cMillies, 0);
    7777    VbglR3CtlFilterMask(0, VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST);
    7878    VbglR3SeamlessSetCap(false);
  • trunk/src/VBox/Additions/x11/xclient/seamless-host.h

    r6893 r6897  
    136136    int start(void);
    137137
    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);
    140143
    141144    /** Returns the current state of the host - i.e. requesting seamless or not. */
     
    163166            try
    164167            {
    165                 stop();
     168                stop(2000);
    166169            }
    167170            catch(...) {}
  • trunk/src/VBox/Additions/x11/xclient/seamless.h

    r6290 r6897  
    2323#include "seamless-glue.h"
    2424
    25 /** Thread function class for VBoxGuestSeamlessX11. */
     25/** Thread function class for VBoxGuestSeamlessGuest. */
    2626class VBoxGuestSeamlessGuestThread: public VBoxGuestThreadFunction
    2727{
  • trunk/src/VBox/Additions/x11/xclient/thread.cpp

    r6893 r6897  
    2020#include "thread.h"
    2121
    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. */
    2923int VBoxGuestThread::stop(unsigned cMillies, int *prc)
    3024{
     
    6155        try
    6256        {
    63             stop(1000, 0);
     57            stop(2000, 0);
    6458        }
    6559        catch(...) {}
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