vbox的更動 25607 路徑 trunk/src/VBox/Runtime/generic
- 時間撮記:
- 2009-12-31 下午01:21:39 (15 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/generic/critsect-generic.cpp
r25604 r25607 69 69 pCritSect->cLockers = -1; 70 70 pCritSect->NativeThreadOwner = NIL_RTNATIVETHREAD; 71 int rc = RTLockValidatorRec Create(&pCritSect->pValidatorRec, NIL_RTLOCKVALIDATORCLASS, 0, "RTCritSect", pCritSect);71 int rc = RTLockValidatorRecExclCreate(&pCritSect->pValidatorRec, NIL_RTLOCKVALIDATORCLASS, 0, "RTCritSect", pCritSect); 72 72 if (RT_SUCCESS(rc)) 73 73 { … … 75 75 if (RT_SUCCESS(rc)) 76 76 return VINF_SUCCESS; 77 RTLockValidatorRec Destroy(&pCritSect->pValidatorRec);77 RTLockValidatorRecExclDestroy(&pCritSect->pValidatorRec); 78 78 } 79 79 … … 86 86 87 87 88 DECL_FORCE_INLINE(int) rtCritSectTryEnter(PRTCRITSECT pCritSect, PCRTLOCKVAL IDATORSRCPOS pSrcPos)88 DECL_FORCE_INLINE(int) rtCritSectTryEnter(PRTCRITSECT pCritSect, PCRTLOCKVALSRCPOS pSrcPos) 89 89 { 90 90 Assert(pCritSect); … … 137 137 return rtCritSectTryEnter(pCritSect, NULL); 138 138 #else 139 RTLOCKVAL IDATORSRCPOS SrcPos = RTLOCKVALIDATORSRCPOS_INIT_NORMAL_API();139 RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_NORMAL_API(); 140 140 return rtCritSectTryEnter(pCritSect, &SrcPos); 141 141 #endif … … 146 146 RTDECL(int) RTCritSectTryEnterDebug(PRTCRITSECT pCritSect, RTHCUINTPTR uId, RT_SRC_POS_DECL) 147 147 { 148 RTLOCKVAL IDATORSRCPOS SrcPos = RTLOCKVALIDATORSRCPOS_INIT_DEBUG_API();148 RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_DEBUG_API(); 149 149 return rtCritSectTryEnter(pCritSect, &SrcPos); 150 150 } … … 152 152 153 153 154 DECL_FORCE_INLINE(int) rtCritSectEnter(PRTCRITSECT pCritSect, PCRTLOCKVAL IDATORSRCPOS pSrcPos)154 DECL_FORCE_INLINE(int) rtCritSectEnter(PRTCRITSECT pCritSect, PCRTLOCKVALSRCPOS pSrcPos) 155 155 { 156 156 Assert(pCritSect); … … 238 238 return rtCritSectEnter(pCritSect, NULL); 239 239 #else 240 RTLOCKVAL IDATORSRCPOS SrcPos = RTLOCKVALIDATORSRCPOS_INIT_NORMAL_API();240 RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_NORMAL_API(); 241 241 return rtCritSectEnter(pCritSect, &SrcPos); 242 242 #endif … … 247 247 RTDECL(int) RTCritSectEnterDebug(PRTCRITSECT pCritSect, RTHCUINTPTR uId, RT_SRC_POS_DECL) 248 248 { 249 RTLOCKVAL IDATORSRCPOS SrcPos = RTLOCKVALIDATORSRCPOS_INIT_DEBUG_API();249 RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_DEBUG_API(); 250 250 return rtCritSectEnter(pCritSect, &SrcPos); 251 251 } … … 294 294 295 295 296 static int rtCritSectEnterMultiple(size_t cCritSects, PRTCRITSECT *papCritSects, PCRTLOCKVAL IDATORSRCPOS pSrcPos)296 static int rtCritSectEnterMultiple(size_t cCritSects, PRTCRITSECT *papCritSects, PCRTLOCKVALSRCPOS pSrcPos) 297 297 { 298 298 Assert(cCritSects > 0); … … 377 377 return rtCritSectEnterMultiple(cCritSects, papCritSects, NULL); 378 378 #else 379 RTLOCKVAL IDATORSRCPOS SrcPos = RTLOCKVALIDATORSRCPOS_INIT_NORMAL_API();379 RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_NORMAL_API(); 380 380 return rtCritSectEnterMultiple(cCritSects, papCritSects, &SrcPos); 381 381 #endif … … 386 386 RTDECL(int) RTCritSectEnterMultipleDebug(size_t cCritSects, PRTCRITSECT *papCritSects, RTUINTPTR uId, RT_SRC_POS_DECL) 387 387 { 388 RTLOCKVAL IDATORSRCPOS SrcPos = RTLOCKVALIDATORSRCPOS_INIT_DEBUG_API();388 RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_DEBUG_API(); 389 389 return rtCritSectEnterMultiple(cCritSects, papCritSects, &SrcPos); 390 390 } … … 435 435 AssertRC(rc); 436 436 437 RTLockValidatorRec Destroy(&pCritSect->pValidatorRec);437 RTLockValidatorRecExclDestroy(&pCritSect->pValidatorRec); 438 438 439 439 return rc;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器