VirtualBox

Changeset 49435 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Nov 11, 2013 11:20:16 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90533
Message:

burn fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r49434 r49435  
    818818    VBOX_VHWA_PENDINGCMD *pIter, *pNext;
    819819
    820     PDMCritSectEnter(&pVGAState->lock, VERR_SEM_BUSY);
     820    PDMCritSectEnter(&pVGAState->CritSect, VERR_SEM_BUSY);
    821821
    822822    RTListForEachSafe(&pVGAState->pendingVhwaCommands.PendingList, pIter, pNext, VBOX_VHWA_PENDINGCMD, Node)
     
    831831    }
    832832
    833     PDMCritSectLeave(&pVGAState->lock);
     833    PDMCritSectLeave(&pVGAState->CritSect);
    834834}
    835835
     
    841841    VBOX_VHWA_PENDINGCMD *pIter, *pNext;
    842842
    843     PDMCritSectEnter(&pVGAState->lock, VERR_SEM_BUSY);
     843    PDMCritSectEnter(&pVGAState->CritSect, VERR_SEM_BUSY);
    844844
    845845    RTListForEachSafe(&pVGAState->pendingVhwaCommands.PendingList, pIter, pNext, VBOX_VHWA_PENDINGCMD, Node)
     
    850850    }
    851851
    852     PDMCritSectLeave(&pVGAState->lock);
     852    PDMCritSectLeave(&pVGAState->CritSect);
    853853}
    854854
     
    864864            pCommand->Flags |= VBOXVHWACMD_FLAG_HG_ASYNCH;
    865865            pPend->pCommand = pCommand;
    866             PDMCritSectEnter(&pVGAState->lock, VERR_SEM_BUSY);
     866            PDMCritSectEnter(&pVGAState->CritSect, VERR_SEM_BUSY);
    867867            if (ASMAtomicUoReadU32(&pVGAState->pendingVhwaCommands.cPending) < VBOX_VHWA_MAX_PENDING_COMMANDS)
    868868            {
    869869                RTListAppend(&pVGAState->pendingVhwaCommands.PendingList, &pPend->Node);
    870870                ASMAtomicIncU32(&pVGAState->pendingVhwaCommands.cPending);
    871                 PDMCritSectLeave(&pVGAState->lock);
     871                PDMCritSectLeave(&pVGAState->CritSect);
    872872                return;
    873873            }
    874             PDMCritSectLeave(&pVGAState->lock);
     874            PDMCritSectLeave(&pVGAState->CritSect);
    875875            LogRel(("Pending command count has reached its threshold.. completing them all.."));
    876876            RTMemFree(pPend);
     
    994994    VBOX_VHWA_PENDINGCMD *pIter, *pNext;
    995995
    996     PDMCritSectEnter(&pVGAState->lock, VERR_SEM_BUSY);
     996    PDMCritSectEnter(&pVGAState->CritSect, VERR_SEM_BUSY);
    997997
    998998    RTListForEachSafe(&pVGAState->pendingVhwaCommands.PendingList, pIter, pNext, VBOX_VHWA_PENDINGCMD, Node)
     
    10001000        if (!vbvaVHWACommandSubmit(pVGAState, pIter->pCommand, true))
    10011001        {
    1002             PDMCritSectLeave(&pVGAState->lock);
     1002            PDMCritSectLeave(&pVGAState->CritSect);
    10031003            return false; /* the command should be pended still */
    10041004        }
     
    10101010    }
    10111011
    1012     PDMCritSectLeave(&pVGAState->lock);
     1012    PDMCritSectLeave(&pVGAState->CritSect);
    10131013
    10141014    return true;
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