VirtualBox

Ignore:
Timestamp:
Sep 23, 2011 1:19:23 PM (13 years ago)
Author:
vboxsync
Message:

PDM: Enter the device critical section for PDM callback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMDevice.cpp

    r37812 r38847  
    420420        if (pDevIns->pReg->pfnInitComplete)
    421421        {
     422            PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED);
    422423            rc = pDevIns->pReg->pfnInitComplete(pDevIns);
     424            PDMCritSectLeave(pDevIns->pCritSectRoR3);
    423425            if (RT_FAILURE(rc))
    424426            {
     
    796798            if (!pLun->pTop)
    797799            {
     800                PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED);
    798801                rc = pDevIns->pReg->pfnAttach(pDevIns, iLun, fFlags);
     802                PDMCritSectLeave(pDevIns->pCritSectRoR3);
    799803            }
    800804            else
     
    904908            if (pDevIns->pReg->pfnAttach)
    905909            {
     910                PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED);
    906911                rc = pDevIns->pReg->pfnAttach(pDevIns, iLun, fFlags);
    907912                if (RT_SUCCESS(rc) && ppBase)
    908913                    *ppBase = pLun->pTop ? &pLun->pTop->IBase : NULL;
     914                PDMCritSectLeave(pDevIns->pCritSectRoR3);
    909915            }
    910916            else
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