Changeset 87820 in vbox
- Timestamp:
- Feb 20, 2021 10:25:39 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/DevPS2M.cpp
r87773 r87820 716 716 static uint32_t ps2mR3HaveEvents(PPS2M pThis) 717 717 { 718 /** @todo r=bird: Why is this returning uint32_t when you're calculating a 719 * boolean value here? Also, it's a predicate function... */ 718 720 return pThis->iAccumX || pThis->iAccumY || pThis->iAccumZ || pThis->iAccumW 719 721 || ((pThis->fCurrB | pThis->fAccumB) != pThis->fReportedB); … … 729 731 uint32_t uHaveEvents; 730 732 Assert(hTimer == pThis->hThrottleTimer); 731 732 /* Grab the lock to avoid races with PutEvent(). */ 733 int rc = PDMDevHlpCritSectEnter(pDevIns, pDevIns->pCritSectRoR3, VERR_SEM_BUSY); 734 AssertReleaseRC(rc); 733 Assert(PDMDevHlpCritSectIsOwner(pDevIns, pDevIns->pCritSectRoR3)); 735 734 736 735 /* If more movement is accumulated, report it and restart the timer. */ … … 747 746 else 748 747 pThis->fThrottleActive = false; 749 750 PDMDevHlpCritSectLeave(pDevIns, pDevIns->pCritSectRoR3);751 748 } 752 749
Note:
See TracChangeset
for help on using the changeset viewer.