- Timestamp:
- May 12, 2008 12:51:19 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 30771
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxGuest
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxGuest/NTLegacy.cpp
r8155 r8781 242 242 // initialize the event notification semaphore 243 243 KeInitializeEvent(&pDevExt->keventNotification, NotificationEvent, FALSE); 244 245 /* Preallocated constant timeout 250ms for HGCM async waiter. */ 246 pDevExt->HGCMWaitTimeout.QuadPart = 250; 247 pDevExt->HGCMWaitTimeout.QuadPart *= -10000; /* relative in 100ns units */ 244 248 } 245 249 -
trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuest.cpp
r8776 r8781 343 343 { 344 344 PVBOXGUESTDEVEXT pDevExt = (PVBOXGUESTDEVEXT)pvData; 345 PLARGE_INTEGER pTimeout;346 345 347 346 dprintf(("VBoxHGCMCallback\n")); … … 350 349 * call; introduce a timeout to make sure we don't wait indefinitely. 351 350 */ 352 pTimeout = (PLARGE_INTEGER)VbglPhysHeapAlloc(sizeof(LARGE_INTEGER));353 Assert(pTimeout);354 if (!pTimeout)355 return;356 357 pTimeout->QuadPart = 250;358 pTimeout->QuadPart *= -10000; /* relative in 100ns units */359 360 351 361 352 while ((pHeader->fu32Flags & VBOX_HGCM_REQ_DONE) == 0) … … 370 361 UserMode, 371 362 FALSE, /* Not Alertable */ 372 pTimeout363 &pDevExt->HGCMWaitTimeout 373 364 ); 374 365 dprintf(("VBoxHGCMCallback: Wait returned %d fu32Flags=%x\n", rc, pHeader->fu32Flags)); … … 385 376 dprintf(("VBoxHGCMCallback: fu32Flags = %08X\n", pHeader->fu32Flags)); 386 377 } 387 VbglPhysHeapFree(pTimeout);388 378 return; 389 379 } -
trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuestPnP.cpp
r8155 r8781 240 240 KeInitializeEvent(&pDevExt->keventNotification, NotificationEvent, FALSE); 241 241 242 /* Preallocated constant timeout 250ms for HGCM async waiter. */ 243 pDevExt->HGCMWaitTimeout.QuadPart = 250; 244 pDevExt->HGCMWaitTimeout.QuadPart *= -10000; /* relative in 100ns units */ 245 242 246 VBoxInitMemBalloon(pDevExt); 243 247 -
trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuest_Internal.h
r8155 r8781 187 187 KEVENT keventNotification; 188 188 189 LARGE_INTEGER HGCMWaitTimeout; 190 189 191 /* Old Windows session id */ 190 192 ULONG ulOldActiveConsoleId;
Note:
See TracChangeset
for help on using the changeset viewer.