DCTYPE dctype,
PPDEVOBJ ppdev)
{
+ /* Lock ppdev */
+ EngAcquireSemaphoreShared(ppdev->hsemDevLock);
/* Setup some basic fields */
pdc->dctype = dctype;
}
hdc = pdc->BaseObject.hHmgr;
+ /* Lock ppdev and initialize the new DC */
DC_vInitDc(pdc, iType, ppdev);
/* FIXME: HACK! */
DC_InitHack(pdc);
}
hdcNew = pdcNew->BaseObject.hHmgr;
- /* Initialize the new DC */
+ /* Lock ppdev and initialize the new DC */
DC_vInitDc(pdcNew, DCTYPE_MEMORY, ppdev);
/* FIXME: HACK! */
DC_InitHack(pdcNew);