Changeset 30686 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm
- Timestamp:
- Jul 7, 2010 12:14:18 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoVdma.cpp
r30532 r30686 137 137 do 138 138 { 139 bool bListEmpty = true; 139 140 KeAcquireSpinLock(&pPipe->SinchLock, &OldIrql); 140 141 Assert(pPipe->enmState == VBOXVDMAPIPE_STATE_OPENNED … … 145 146 { 146 147 vboxVideoLeDetach(&pPipe->CmdListHead, pDetachHead); 147 pPipe->bNeedNotify = false; 148 bListEmpty = IsListEmpty(pDetachHead); 149 pPipe->bNeedNotify = bListEmpty; 148 150 } 149 151 else … … 156 158 KeReleaseSpinLock(&pPipe->SinchLock, OldIrql); 157 159 158 if (! IsListEmpty(pDetachHead))160 if (!bListEmpty) 159 161 { 160 162 Assert(Status == STATUS_SUCCESS); … … 164 166 if (enmState == VBOXVDMAPIPE_STATE_OPENNED) 165 167 { 166 KeAcquireSpinLock(&pPipe->SinchLock, &OldIrql);167 pPipe->bNeedNotify = true;168 KeReleaseSpinLock(&pPipe->SinchLock, OldIrql);169 170 168 Status = KeWaitForSingleObject(&pPipe->Event, Executive, KernelMode, FALSE, NULL /* PLARGE_INTEGER Timeout */); 171 169 Assert(Status == STATUS_SUCCESS);
Note:
See TracChangeset
for help on using the changeset viewer.