VirtualBox

Changeset 25732 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Jan 11, 2010 4:23:26 PM (15 years ago)
Author:
vboxsync
Message:

PDMCritSect: Deployed lock ordering. (ring-3 only, only DEBUG_bird atm)

Location:
trunk/src/VBox/Devices/Network
Files:
2 edited

Legend:

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

    r25728 r25732  
    49114911
    49124912    /* Initialize critical section */
    4913     rc = PDMDevHlpCritSectInit(pDevIns, &pState->cs, pState->szInstance);
     4913    rc = PDMDevHlpCritSectInit(pDevIns, &pState->cs, RT_SRC_POS, "%s", pState->szInstance);
    49144914    if (RT_FAILURE(rc))
    49154915        return rc;
    49164916#ifndef E1K_GLOBAL_MUTEX
    4917     char szTmp[sizeof(pState->szInstance) + 2];
    4918     RTStrPrintf(szTmp, sizeof(szTmp), "%sRX", pState->szInstance);
    4919     rc = PDMDevHlpCritSectInit(pDevIns, &pState->csRx, szTmp);
     4917    rc = PDMDevHlpCritSectInit(pDevIns, &pState->csRx, RT_SRC_POS, "%sRX", pState->szInstance);
    49204918    if (RT_FAILURE(rc))
    49214919        return rc;
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r25728 r25732  
    51165116     * attaching drivers or anything else that may call us back.
    51175117     */
    5118     char szName[24];
    5119     RTStrPrintf(szName, sizeof(szName), "PCNet#%d", iInstance);
    5120     rc = PDMDevHlpCritSectInit(pDevIns, &pThis->CritSect, szName);
     5118    rc = PDMDevHlpCritSectInit(pDevIns, &pThis->CritSect, RT_SRC_POS, "PCNet#%d", iInstance);
    51215119    if (RT_FAILURE(rc))
    51225120        return 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