VirtualBox

Ignore:
Timestamp:
Sep 11, 2007 8:42:32 AM (17 years ago)
Author:
vboxsync
Message:

Adjusted timeout. VBoxGuest used to wait 10 times longer than it should.

Location:
trunk/src/VBox/Additions/WINNT/VBoxService
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxService/VBoxDisplay.cpp

    r4267 r4686  
    319319        /* wait for a display change event */
    320320        VBoxGuestWaitEventInfo waitEvent;
    321         waitEvent.u32TimeoutIn = 100;
     321        waitEvent.u32TimeoutIn = 1000;
    322322        waitEvent.u32EventMaskIn = VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST;
    323323        if (DeviceIoControl(gVBoxDriver, IOCTL_VBOXGUEST_WAITEVENT, &waitEvent, sizeof(waitEvent), &waitEvent, sizeof(waitEvent), &cbReturned, NULL))
  • trunk/src/VBox/Additions/WINNT/VBoxService/VBoxMemBalloon.cpp

    r4597 r4686  
    103103        /* wait for a seamless change event */
    104104        VBoxGuestWaitEventInfo waitEvent;
    105         waitEvent.u32TimeoutIn = 1000;
     105        waitEvent.u32TimeoutIn = 5000;
    106106        waitEvent.u32EventMaskIn = VMMDEV_EVENT_BALLOON_CHANGE_REQUEST;
    107107        if (DeviceIoControl(gVBoxDriver, IOCTL_VBOXGUEST_WAITEVENT, &waitEvent, sizeof(waitEvent), &waitEvent, sizeof(waitEvent), &cbReturned, NULL))
  • trunk/src/VBox/Additions/WINNT/VBoxService/VBoxRestore.cpp

    r4305 r4686  
    116116        /* wait for a seamless change event */
    117117        VBoxGuestWaitEventInfo waitEvent;
    118         waitEvent.u32TimeoutIn = 1000;
     118        waitEvent.u32TimeoutIn = 5000;
    119119        waitEvent.u32EventMaskIn = VMMDEV_EVENT_RESTORED;
    120120        if (DeviceIoControl(gVBoxDriver, IOCTL_VBOXGUEST_WAITEVENT, &waitEvent, sizeof(waitEvent), &waitEvent, sizeof(waitEvent), &cbReturned, NULL))
  • trunk/src/VBox/Additions/WINNT/VBoxService/VBoxSeamless.cpp

    r4461 r4686  
    293293        /* wait for a seamless change event */
    294294        VBoxGuestWaitEventInfo waitEvent;
    295         waitEvent.u32TimeoutIn = 1000;
     295        waitEvent.u32TimeoutIn = 5000;
    296296        waitEvent.u32EventMaskIn = VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST;
    297297        if (DeviceIoControl(gVBoxDriver, IOCTL_VBOXGUEST_WAITEVENT, &waitEvent, sizeof(waitEvent), &waitEvent, sizeof(waitEvent), &cbReturned, NULL))
  • trunk/src/VBox/Additions/WINNT/VBoxService/VBoxStatistics.cpp

    r4610 r4686  
    9393        *(uintptr_t *)&gCtx.pfnGlobalMemoryStatusEx = (uintptr_t)GetProcAddress(hMod, "GlobalMemoryStatusEx");
    9494        if (gCtx.pfnGlobalMemoryStatusEx)
    95             dprintf(("gCtx.GlobalMemoryStatus= %x\n", gCtx.pfnGlobalMemoryStatusEx));
     95            dprintf(("gCtx.GlobalMemoryStatusEx = %x\n", gCtx.pfnGlobalMemoryStatusEx));
    9696        else
    9797        {
    9898            /** @todo now fails in NT4; do we care? */
    99             dprintf(("KERNEL32.GlobalMemoryStatus not found!!\n"));
     99            dprintf(("KERNEL32.GlobalMemoryStatusEx not found!!\n"));
    100100            return VERR_NOT_IMPLEMENTED;
    101101        }
     
    260260        /* wait for a seamless change event */
    261261        VBoxGuestWaitEventInfo waitEvent;
    262         waitEvent.u32TimeoutIn = (pCtx->uStatInterval) ? pCtx->uStatInterval : 1000;
     262        waitEvent.u32TimeoutIn = (pCtx->uStatInterval) ? pCtx->uStatInterval : 5000;
    263263        waitEvent.u32EventMaskIn = VMMDEV_EVENT_STATISTICS_INTERVAL_CHANGE_REQUEST;
    264264        if (DeviceIoControl(gVBoxDriver, IOCTL_VBOXGUEST_WAITEVENT, &waitEvent, sizeof(waitEvent), &waitEvent, sizeof(waitEvent), &cbReturned, NULL))
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