VirtualBox

Changeset 4012 in vbox for trunk/src/VBox/VMM/PDMDriver.cpp


Ignore:
Timestamp:
Aug 2, 2007 11:48:45 PM (17 years ago)
Author:
vboxsync
Message:

Hooked up the PDMThread stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMDriver.cpp

    r3857 r4012  
    9595static DECLCALLBACK(int) pdmR3DrvHlp_SUPCallVMMR0Ex(PPDMDRVINS pDrvIns, unsigned uOperation, void *pvArg, unsigned cbArg);
    9696static DECLCALLBACK(int) pdmR3DrvHlp_USBRegisterHub(PPDMDRVINS pDrvIns, void *pvReservedIn, void **ppvReservedHlp);
     97static DECLCALLBACK(int) pdmR3DrvHlp_PDMThreadCreate(PPDMDRVINS pDrvIns, PPPDMTHREAD ppThread, void *pvUser, PFNPDMTHREADDRV pfnThread,
     98                                                     PFNPDMTHREADWAKEUPDRV pfnWakeup, size_t cbStack, RTTHREADTYPE enmType, const char *pszName);
    9799
    98100/** @def PDMDRV_ASSERT_DRVINS
     
    141143    pdmR3DrvHlp_SUPCallVMMR0Ex,
    142144    pdmR3DrvHlp_USBRegisterHub,
     145    pdmR3DrvHlp_PDMThreadCreate,
    143146    0 /* the end */
    144147};
     
    506509        AssertRC(rc);
    507510        /* PDM threads. */
    508         ///@todo rc = pdmR3DestroyDriver(pCur->Internal.s.pVM, pCur);
     511        rc = pdmR3ThreadDestroyDriver(pCur->Internal.s.pVM, pCur);
    509512        AssertRC(rc);
    510513        /* Finally, the driver it self. */
     
    10041007
    10051008
    1006 
    10071009/** @copydoc PDMDRVHLP::pfnUSBRegisterHub */
    10081010static DECLCALLBACK(int) pdmR3DrvHlp_USBRegisterHub(PPDMDRVINS pDrvIns, void *pvReservedIn, void **ppvReservedHlp)
     
    10201022}
    10211023
     1024
     1025/** @copydoc PDMDRVHLP::pfnPDMThreadCreate */
     1026static DECLCALLBACK(int) pdmR3DrvHlp_PDMThreadCreate(PPDMDRVINS pDrvIns, PPPDMTHREAD ppThread, void *pvUser, PFNPDMTHREADDRV pfnThread,
     1027                                                     PFNPDMTHREADWAKEUPDRV pfnWakeup, size_t cbStack, RTTHREADTYPE enmType, const char *pszName)
     1028{
     1029    PDMDRV_ASSERT_DRVINS(pDrvIns);
     1030    VM_ASSERT_EMT(pDrvIns->Internal.s.pVM);
     1031    LogFlow(("pdmR3DrvHlp_PDMThreadCreate: caller='%s'/%d: ppThread=%p pvUser=%p pfnThread=%p pfnWakeup=%p cbStack=%#zx enmType=%d pszName=%p:{%s}\n",
     1032             pDrvIns->pDrvReg->szDriverName, pDrvIns->iInstance, ppThread, pvUser, pfnThread, pfnWakeup, cbStack, enmType, pszName, pszName));
     1033
     1034    int rc = pdmR3ThreadCreateDriver(pDrvIns->Internal.s.pVM, pDrvIns, ppThread, pvUser, pfnThread, pfnWakeup, cbStack, enmType, pszName);
     1035
     1036    LogFlow(("pdmR3DrvHlp_PDMThreadCreate: caller='%s'/%d: returns %Vrc *ppThread=%RTthrd\n", pDrvIns->pDrvReg->szDriverName, pDrvIns->iInstance,
     1037            rc, *ppThread));
     1038    return rc;
     1039}
     1040
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