VirtualBox

Ignore:
Timestamp:
Jun 19, 2009 10:02:27 AM (15 years ago)
Author:
vboxsync
Message:

DrvIntNet,DrvTAP: Deregister statistics during destruction. (untested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvIntNet.cpp

    r19079 r20708  
    723723    if (EventSuspended != NIL_RTSEMEVENT)
    724724        RTSemEventDestroy(EventSuspended);
     725
     726    /*
     727     * Deregister statistics in case we're being detached.
     728     */
     729    PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->pBuf->cbStatRecv);
     730    PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->pBuf->cbStatSend);
     731    PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->pBuf->cStatRecvs);
     732    PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->pBuf->cStatSends);
     733    PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->pBuf->cStatLost);
     734    PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->pBuf->cStatYieldsNok);
     735#ifdef VBOX_WITH_STATISTICS
     736    PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatReceive);
     737    PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatTransmit);
     738#endif
    725739}
    726740
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