Changeset 49435 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Nov 11, 2013 11:20:16 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 90533
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp
r49434 r49435 818 818 VBOX_VHWA_PENDINGCMD *pIter, *pNext; 819 819 820 PDMCritSectEnter(&pVGAState-> lock, VERR_SEM_BUSY);820 PDMCritSectEnter(&pVGAState->CritSect, VERR_SEM_BUSY); 821 821 822 822 RTListForEachSafe(&pVGAState->pendingVhwaCommands.PendingList, pIter, pNext, VBOX_VHWA_PENDINGCMD, Node) … … 831 831 } 832 832 833 PDMCritSectLeave(&pVGAState-> lock);833 PDMCritSectLeave(&pVGAState->CritSect); 834 834 } 835 835 … … 841 841 VBOX_VHWA_PENDINGCMD *pIter, *pNext; 842 842 843 PDMCritSectEnter(&pVGAState-> lock, VERR_SEM_BUSY);843 PDMCritSectEnter(&pVGAState->CritSect, VERR_SEM_BUSY); 844 844 845 845 RTListForEachSafe(&pVGAState->pendingVhwaCommands.PendingList, pIter, pNext, VBOX_VHWA_PENDINGCMD, Node) … … 850 850 } 851 851 852 PDMCritSectLeave(&pVGAState-> lock);852 PDMCritSectLeave(&pVGAState->CritSect); 853 853 } 854 854 … … 864 864 pCommand->Flags |= VBOXVHWACMD_FLAG_HG_ASYNCH; 865 865 pPend->pCommand = pCommand; 866 PDMCritSectEnter(&pVGAState-> lock, VERR_SEM_BUSY);866 PDMCritSectEnter(&pVGAState->CritSect, VERR_SEM_BUSY); 867 867 if (ASMAtomicUoReadU32(&pVGAState->pendingVhwaCommands.cPending) < VBOX_VHWA_MAX_PENDING_COMMANDS) 868 868 { 869 869 RTListAppend(&pVGAState->pendingVhwaCommands.PendingList, &pPend->Node); 870 870 ASMAtomicIncU32(&pVGAState->pendingVhwaCommands.cPending); 871 PDMCritSectLeave(&pVGAState-> lock);871 PDMCritSectLeave(&pVGAState->CritSect); 872 872 return; 873 873 } 874 PDMCritSectLeave(&pVGAState-> lock);874 PDMCritSectLeave(&pVGAState->CritSect); 875 875 LogRel(("Pending command count has reached its threshold.. completing them all..")); 876 876 RTMemFree(pPend); … … 994 994 VBOX_VHWA_PENDINGCMD *pIter, *pNext; 995 995 996 PDMCritSectEnter(&pVGAState-> lock, VERR_SEM_BUSY);996 PDMCritSectEnter(&pVGAState->CritSect, VERR_SEM_BUSY); 997 997 998 998 RTListForEachSafe(&pVGAState->pendingVhwaCommands.PendingList, pIter, pNext, VBOX_VHWA_PENDINGCMD, Node) … … 1000 1000 if (!vbvaVHWACommandSubmit(pVGAState, pIter->pCommand, true)) 1001 1001 { 1002 PDMCritSectLeave(&pVGAState-> lock);1002 PDMCritSectLeave(&pVGAState->CritSect); 1003 1003 return false; /* the command should be pended still */ 1004 1004 } … … 1010 1010 } 1011 1011 1012 PDMCritSectLeave(&pVGAState-> lock);1012 PDMCritSectLeave(&pVGAState->CritSect); 1013 1013 1014 1014 return true;
Note:
See TracChangeset
for help on using the changeset viewer.