VirtualBox

Ignore:
Timestamp:
Feb 14, 2008 12:16:17 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28106
Message:

Removed ASYNCSTATE. Set EventOutOfSpace to NIL after destruction.

File:
1 edited

Legend:

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

    r6931 r6941  
    8181*   Structures and Typedefs                                                    *
    8282*******************************************************************************/
    83 typedef enum ASYNCSTATE
    84 {
    85     //ASYNCSTATE_SUSPENDED = 1,
    86     ASYNCSTATE_RUNNING,
    87     ASYNCSTATE_TERMINATE
    88 } ASYNCSTATE;
    89 
    9083/**
    9184 * Block driver instance data.
     
    429422    }
    430423
     424
    431425    rc = RTSemEventDestroy(pData->EventOutOfSpace);
    432426    AssertRC(rc);
     427    pData->EventOutOfSpace = NIL_RTSEMEVENT;
    433428
    434429    LogFlow(("drvTAPAsyncIoThread: returns %Vrc\n", VINF_SUCCESS));
     
    449444    PDRVTAP pData = PDMINS2DATA(pDrvIns, PDRVTAP);
    450445
    451     /* Ensure that it does not spin in the CanReceive loop */
     446    /* Ensure that it does not spin in the CanReceive loop.
     447       (May assert in IPRT if we're really unlucky.) */
    452448    if (ASMAtomicXchgU32(&pData->fOutOfSpace, false))
    453449        RTSemEventSignal(pData->EventOutOfSpace);
     
    548544    szMacAddress[sizeof(szMacAddress) - 1] =  0;
    549545
    550     RTStrPrintf(szCommand, sizeof(szCommand), "%s %s %s", pData->pszSetupApplication, 
     546    RTStrPrintf(szCommand, sizeof(szCommand), "%s %s %s", pData->pszSetupApplication,
    551547            szMacAddress, pData->fStatic ? pData->pszDeviceName : "");
    552548#else
    553     RTStrPrintf(szCommand, sizeof(szCommand), "%s %s", pData->pszSetupApplication, 
     549    RTStrPrintf(szCommand, sizeof(szCommand), "%s %s", pData->pszSetupApplication,
    554550            pData->fStatic ? pData->pszDeviceName : "");
    555551#endif
     
    710706    else
    711707        rc = PDMDrvHlpVMSetError(pData->pDrvIns, VERR_HOSTIF_INIT_FAILED, RT_SRC_POS,
    712                                          N_("Failed to obtain VNIC info")); 
     708                                         N_("Failed to obtain VNIC info"));
    713709    dlpi_close(pData->pDeviceHandle);
    714710    return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette