VirtualBox

Changeset 44857 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 27, 2013 10:50:06 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84006
Message:

DevVirtioNet.cpp: Changed it to do its own locking again. Hope this is safe.

File:
1 edited

Legend:

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

    r44856 r44857  
    19401940    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    19411941
    1942     /* Initialize PCI part first. */
     1942    /* Initialize the instance data suffiencently for the destructor not to blow up. */
     1943    pThis->hEventMoreRxDescAvail = NIL_RTSEMEVENT;
     1944
     1945    /* Do our own locking. */
     1946    rc = PDMDevHlpSetDeviceCritSect(pDevIns, PDMDevHlpCritSectGetNop(pDevIns));
     1947    AssertRCReturn(rc, rc);
     1948
     1949    /* Initialize PCI part. */
    19431950    pThis->VPCI.IBase.pfnQueryInterface    = vnetQueryInterface;
    19441951    rc = vpciConstruct(pDevIns, &pThis->VPCI, iInstance,
     
    19501957
    19511958    Log(("%s Constructing new instance\n", INSTANCE(pThis)));
    1952 
    1953     pThis->hEventMoreRxDescAvail = NIL_RTSEMEVENT;
    19541959
    19551960    /*
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