- Timestamp:
- May 27, 2024 10:20:07 AM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/TMAll.cpp
r101088 r104788 713 713 # ifdef IN_RING3 714 714 /* Go thru all the timers and check that the active ones all are in the active lists. */ 715 uint32_t idxTimer = pQueue->cTimersAlloc; 716 uint32_t cFree = 0; 715 int const rcAllocLock = PDMCritSectRwTryEnterShared(pVM, &pQueue->AllocLock); 716 uint32_t idxTimer = pQueue->cTimersAlloc; 717 uint32_t cFree = 0; 717 718 while (idxTimer-- > 0) 718 719 { … … 779 780 } 780 781 } 781 Assert(cFree == pQueue->cTimersFree); 782 if (RT_SUCCESS(rcAllocLock)) 783 { 784 Assert(cFree == pQueue->cTimersFree); 785 PDMCritSectRwLeaveShared(pVM, &pQueue->AllocLock); 786 } 787 else 788 Assert(cFree >= pQueue->cTimersFree); /* Can be lower as the tmr3TimerCreate may run concurrent. */ 789 782 790 # endif /* IN_RING3 */ 783 791
Note:
See TracChangeset
for help on using the changeset viewer.