Changeset 26181 in vbox
- Timestamp:
- Feb 3, 2010 4:58:18 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMAsyncCompletionFileCache.cpp
r26147 r26181 275 275 276 276 /* We can't evict pages which are currently in progress */ 277 if ( !(pCurr->fFlags & PDMACFILECACHE_ENTRY_IO_IN_PROGRESS)277 if ( !(pCurr->fFlags & PDMACFILECACHE_ENTRY_IO_IN_PROGRESS) 278 278 && (ASMAtomicReadU32(&pCurr->cRefs) == 0)) 279 279 { … … 951 951 952 952 /* Make sure nobody is accessing the cache while we delete the tree. */ 953 RTCritSectEnter(&pCache->CritSect); 953 954 RTSemRWRequestWrite(pEndpointCache->SemRWEntries, RT_INDEFINITE_WAIT); 954 RTCritSectEnter(&pCache->CritSect);955 955 RTAvlrFileOffsetDestroy(pEndpointCache->pTree, pdmacFileEpCacheEntryDestroy, pCache); 956 RTSemRWReleaseWrite(pEndpointCache->SemRWEntries); 956 957 RTCritSectLeave(&pCache->CritSect); 957 RTSemRWReleaseWrite(pEndpointCache->SemRWEntries);958 958 959 959 RTSemRWDestroy(pEndpointCache->SemRWEntries);
Note:
See TracChangeset
for help on using the changeset viewer.

