Changeset 82200 in vbox
- Timestamp:
- Nov 25, 2019 8:55:43 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 135014
- Location:
- trunk/src/VBox/Devices/Input
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/DevPS2.h
r82195 r82200 136 136 TMTIMERHANDLE hThrottleTimer; 137 137 138 /** The device critical section protecting everything - R3 Ptr */139 R3PTRTYPE(PPDMCRITSECT) pCritSectR3;140 138 /** The device instance. 141 139 * @note Only for getting our bearings in interface methods. */ … … 275 273 uint32_t uThrottleDelay; 276 274 277 /** The device critical section protecting everything - R3 Ptr */278 R3PTRTYPE(PPDMCRITSECT) pCritSectR3;279 275 /** The device instance. 280 276 * @note Only for getting our bearings in interface methods. */ -
trunk/src/VBox/Devices/Input/DevPS2K.cpp
r82195 r82200 942 942 943 943 /* Grab the lock to avoid races with event delivery or EMTs. */ 944 int rc = PDM CritSectEnter(pThis->pCritSectR3, VERR_SEM_BUSY);944 int rc = PDMDevHlpCritSectEnter(pDevIns, pDevIns->pCritSectRoR3, VERR_SEM_BUSY); 945 945 AssertReleaseRC(rc); 946 946 … … 954 954 KBCUpdateInterrupts(pDevIns); 955 955 956 PDM CritSectLeave(pThis->pCritSectR3);956 PDMDevHlpCritSectLeave(pDevIns, pDevIns->pCritSectRoR3); 957 957 } 958 958 … … 1116 1116 if (fHaveEvent) 1117 1117 { 1118 rc = PDMCritSectEnter(pThis->pCritSectR3, VERR_SEM_BUSY); 1119 AssertReleaseRC(rc); 1120 1118 Assert(PDMDevHlpCritSectIsOwner(pDevIns, pDevIns->pCritSectRoR3)); 1121 1119 rc = ps2kR3ProcessKeyEvent(pDevIns, pThis, u32HidCode, fKeyDown); 1122 1123 PDMCritSectLeave(pThis->pCritSectR3);1124 1120 } 1125 1121 … … 1139 1135 LogRelFlowFunc(("key code %08X\n", u32UsageCode)); 1140 1136 1141 rc = PDM CritSectEnter(pThis->pCritSectR3, VERR_SEM_BUSY);1137 rc = PDMDevHlpCritSectEnter(pDevIns, pDevIns->pCritSectRoR3, VERR_SEM_BUSY); 1142 1138 AssertReleaseRC(rc); 1143 1139 … … 1150 1146 ps2kR3ReleaseKeys(pDevIns, pThis); 1151 1147 1152 PDM CritSectLeave(pThis->pCritSectR3);1148 PDMDevHlpCritSectLeave(pDevIns, pDevIns->pCritSectRoR3); 1153 1149 1154 1150 return VINF_SUCCESS; 1155 1151 } 1156 1152 1153 1154 /* -=-=-=-=-=- Device management -=-=-=-=-=- */ 1157 1155 1158 1156 /** … … 1372 1370 1373 1371 /* 1374 * Initialize the critical section pointer(s).1375 */1376 pThis->pCritSectR3 = pDevIns->pCritSectRoR3;1377 1378 /*1379 1372 * Create the input rate throttling timer. 1380 1373 */ -
trunk/src/VBox/Devices/Input/DevPS2M.cpp
r82195 r82200 683 683 684 684 /* Grab the lock to avoid races with PutEvent(). */ 685 int rc = PDM CritSectEnter(pThis->pCritSectR3, VERR_SEM_BUSY);685 int rc = PDMDevHlpCritSectEnter(pDevIns, pDevIns->pCritSectRoR3, VERR_SEM_BUSY); 686 686 AssertReleaseRC(rc); 687 687 … … 700 700 pThis->fThrottleActive = false; 701 701 702 PDM CritSectLeave(pThis->pCritSectR3);702 PDMDevHlpCritSectLeave(pDevIns, pDevIns->pCritSectRoR3); 703 703 } 704 704 … … 758 758 } 759 759 760 760 761 /* -=-=-=-=-=- Mouse: IBase -=-=-=-=-=- */ 761 762 … … 824 825 } 825 826 827 826 828 /* -=-=-=-=-=- Mouse: IMousePort -=-=-=-=-=- */ 827 829 … … 866 868 867 869 870 /* -=-=-=-=-=- Device management -=-=-=-=-=- */ 868 871 869 872 /** … … 1025 1028 pThis->Mouse.IPort.pfnPutEventAbs = ps2mR3MousePort_PutEventAbs; 1026 1029 pThis->Mouse.IPort.pfnPutEventMultiTouch = ps2mR3MousePort_PutEventMT; 1027 1028 /*1029 * Initialize the critical section pointer(s).1030 */1031 pThis->pCritSectR3 = pDevIns->pCritSectRoR3;1032 1030 1033 1031 /*
Note:
See TracChangeset
for help on using the changeset viewer.