VirtualBox

Changeset 2182 in vbox for trunk


Ignore:
Timestamp:
Apr 18, 2007 2:34:46 PM (18 years ago)
Author:
vboxsync
Message:

consider asynchronous HGCM requests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/module/vboxmod.c

    r2100 r2182  
    236236            /* now issue the request */
    237237            rc = VbglGRPerform(reqFull);
     238
     239            /* asynchronous processing? */
     240            if (rc == VINF_HGCM_ASYNC_EXECUTE)
     241            {
     242                VMMDevHGCMRequestHeader *reqHGCM = (VMMDevHGCMRequestHeader*)reqFull;
     243                wait_event (vboxDev->eventq, reqHGCM->fu32Flags & VBOX_HGCM_REQ_DONE);
     244                rc = reqFull->rc;
     245            }
     246
    238247            /* failed? */
    239248            if (VBOX_FAILURE(rc) || VBOX_FAILURE(reqFull->rc))
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