Changeset 25607 in vbox for trunk/src/VBox/Runtime/r3/linux
- Timestamp:
- Dec 31, 2009 1:21:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/linux/semmutex-linux.cpp
r25604 r25607 81 81 #ifdef RTSEMMUTEX_STRICT 82 82 /** Lock validator record associated with this mutex. */ 83 RTLOCKVAL IDATORRECValidatorRec;83 RTLOCKVALRECEXCL ValidatorRec; 84 84 #endif 85 85 }; … … 120 120 pThis->cNesting = 0; 121 121 #ifdef RTSEMMUTEX_STRICT 122 RTLockValidatorRec Init(&pThis->ValidatorRec, NIL_RTLOCKVALIDATORCLASS, RTLOCKVALIDATOR_SUB_CLASS_NONE, "RTSemMutex", pThis);122 RTLockValidatorRecExclInit(&pThis->ValidatorRec, NIL_RTLOCKVALIDATORCLASS, RTLOCKVALIDATOR_SUB_CLASS_NONE, "RTSemMutex", pThis); 123 123 #endif 124 124 … … 156 156 pThis->cNesting = 0; 157 157 #ifdef RTSEMMUTEX_STRICT 158 RTLockValidatorRec Delete(&pThis->ValidatorRec);158 RTLockValidatorRecExclDelete(&pThis->ValidatorRec); 159 159 #endif 160 160 … … 167 167 168 168 169 DECL_FORCE_INLINE(int) rtSemMutexRequest(RTSEMMUTEX MutexSem, unsigned cMillies, bool fAutoResume, PCRTLOCKVAL IDATORSRCPOS pSrcPos)169 DECL_FORCE_INLINE(int) rtSemMutexRequest(RTSEMMUTEX MutexSem, unsigned cMillies, bool fAutoResume, PCRTLOCKVALSRCPOS pSrcPos) 170 170 { 171 171 /* … … 310 310 int rc = rtSemMutexRequest(MutexSem, cMillies, true, NULL); 311 311 #else 312 RTLOCKVAL IDATORSRCPOS SrcPos = RTLOCKVALIDATORSRCPOS_INIT_NORMAL_API();312 RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_NORMAL_API(); 313 313 int rc = rtSemMutexRequest(MutexSem, cMillies, true, &SrcPos); 314 314 #endif … … 320 320 RTDECL(int) RTSemMutexRequestDebug(RTSEMMUTEX MutexSem, unsigned cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL) 321 321 { 322 RTLOCKVAL IDATORSRCPOS SrcPos = RTLOCKVALIDATORSRCPOS_INIT_DEBUG_API();322 RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_DEBUG_API(); 323 323 int rc = rtSemMutexRequest(MutexSem, cMillies, true, &SrcPos); 324 324 Assert(rc != VERR_INTERRUPTED); … … 332 332 return rtSemMutexRequest(MutexSem, cMillies, false, NULL); 333 333 #else 334 RTLOCKVAL IDATORSRCPOS SrcPos = RTLOCKVALIDATORSRCPOS_INIT_NORMAL_API();334 RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_NORMAL_API(); 335 335 return rtSemMutexRequest(MutexSem, cMillies, false, &SrcPos); 336 336 #endif … … 340 340 RTDECL(int) RTSemMutexRequestNoResumeDebug(RTSEMMUTEX MutexSem, unsigned cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL) 341 341 { 342 RTLOCKVAL IDATORSRCPOS SrcPos = RTLOCKVALIDATORSRCPOS_INIT_DEBUG_API();342 RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_DEBUG_API(); 343 343 return rtSemMutexRequest(MutexSem, cMillies, false, &SrcPos); 344 344 }
Note:
See TracChangeset
for help on using the changeset viewer.