VirtualBox

Changeset 8776

Show
Ignore:
Timestamp:
05/12/08 11:54:31 (8 months ago)
Author:
vboxsync
Message:

HGCM wait for a request completion must be not alertable (Windows guest).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuest.cpp

    r8155 r8776  
    361361    while ((pHeader->fu32Flags & VBOX_HGCM_REQ_DONE) == 0) 
    362362    { 
    363         /* Specifying UserMode so killing the user process will abort the wait. */  
     363        /* Specifying UserMode so killing the user process will abort the wait. 
     364         * @todo Since VbglGRCancel is not yet implemented, the wait itself must 
     365         *       be not interruptible. The wait can be interrupted only when the 
     366         *       calling process is being killed. 
     367         *       When alertable is TRUE, the wait sometimes ends with STATUS_USER_APC. 
     368         */  
    364369        NTSTATUS rc = KeWaitForSingleObject (&pDevExt->keventNotification, Executive, 
    365                                              UserMode, TRUE, pTimeout 
     370                                             UserMode, 
     371                                             FALSE, /* Not Alertable */ 
     372                                             pTimeout 
    366373                                            ); 
    367374        dprintf(("VBoxHGCMCallback: Wait returned %d fu32Flags=%x\n", rc, pHeader->fu32Flags)); 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy