Changeset 57276 in vbox for trunk/src/VBox/Runtime/r0drv/linux/semevent-r0drv-linux.c
- Timestamp:
- Aug 11, 2015 2:39:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/semevent-r0drv-linux.c
r56290 r57276 73 73 { 74 74 PRTSEMEVENTINTERNAL pThis; 75 IPRT_LINUX_SAVE_EFL_AC(); 75 76 76 77 AssertReturn(!(fFlags & ~(RTSEMEVENT_FLAGS_NO_LOCK_VAL | RTSEMEVENT_FLAGS_BOOTSTRAP_HACK)), VERR_INVALID_PARAMETER); … … 87 88 88 89 *phEventSem = pThis; 90 IPRT_LINUX_RESTORE_EFL_AC(); 89 91 return VINF_SUCCESS; 90 92 } … … 118 120 RTDECL(int) RTSemEventDestroy(RTSEMEVENT hEventSem) 119 121 { 122 IPRT_LINUX_SAVE_EFL_AC(); 123 120 124 /* 121 125 * Validate input. … … 135 139 wake_up_all(&pThis->Head); 136 140 rtR0SemEventLnxRelease(pThis); 141 142 IPRT_LINUX_RESTORE_EFL_AC(); 137 143 return VINF_SUCCESS; 138 144 } … … 142 148 RTDECL(int) RTSemEventSignal(RTSEMEVENT hEventSem) 143 149 { 150 IPRT_LINUX_SAVE_EFL_AC(); 151 144 152 /* 145 153 * Validate input. … … 157 165 158 166 rtR0SemEventLnxRelease(pThis); 167 IPRT_LINUX_RESTORE_EFL_AC(); 159 168 return VINF_SUCCESS; 160 169 } … … 195 204 * We have to wait. 196 205 */ 206 IPRT_LINUX_SAVE_EFL_AC(); 197 207 RTR0SEMLNXWAIT Wait; 198 208 rc = rtR0SemLnxWaitInit(&Wait, fFlags, uTimeout, &pThis->Head); … … 231 241 IPRT_DEBUG_SEMS_STATE_RC(pThis, 'E', rc); 232 242 } 243 IPRT_LINUX_RESTORE_EFL_AC(); 233 244 } 234 245
Note:
See TracChangeset
for help on using the changeset viewer.