Changeset 25707 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Jan 11, 2010 10:02:03 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/lockvalidator.cpp
r25704 r25707 2807 2807 RTLOCKVAL_ASSERT_PTR_ALIGN(pRec); 2808 2808 RTLOCKVAL_ASSERT_PTR_ALIGN(hLock); 2809 Assert( uSubClass >= RTLOCKVAL_SUB_CLASS_USER 2810 || uSubClass == RTLOCKVAL_SUB_CLASS_NONE 2811 || uSubClass == RTLOCKVAL_SUB_CLASS_ANY); 2809 2812 2810 2813 pRec->Core.u32Magic = RTLOCKVALRECEXCL_MAGIC; … … 3229 3232 RTLOCKVAL_ASSERT_PTR_ALIGN(pRec); 3230 3233 RTLOCKVAL_ASSERT_PTR_ALIGN(hLock); 3234 Assert( uSubClass >= RTLOCKVAL_SUB_CLASS_USER 3235 || uSubClass == RTLOCKVAL_SUB_CLASS_NONE 3236 || uSubClass == RTLOCKVAL_SUB_CLASS_ANY); 3231 3237 3232 3238 pRec->Core.u32Magic = RTLOCKVALRECSHRD_MAGIC; … … 3301 3307 3302 3308 rtLockValidatorSerializeDestructLeave(); 3309 } 3310 3311 3312 RTDECL(uint32_t) RTLockValidatorRecSharedSetSubClass(PRTLOCKVALRECSHRD pRec, uint32_t uSubClass) 3313 { 3314 AssertPtrReturn(pRec, RTLOCKVAL_SUB_CLASS_INVALID); 3315 AssertReturn(pRec->Core.u32Magic == RTLOCKVALRECSHRD_MAGIC, RTLOCKVAL_SUB_CLASS_INVALID); 3316 AssertReturn( uSubClass >= RTLOCKVAL_SUB_CLASS_USER 3317 || uSubClass == RTLOCKVAL_SUB_CLASS_NONE 3318 || uSubClass == RTLOCKVAL_SUB_CLASS_ANY, 3319 RTLOCKVAL_SUB_CLASS_INVALID); 3320 return ASMAtomicXchgU32(&pRec->uSubClass, uSubClass); 3303 3321 } 3304 3322
Note:
See TracChangeset
for help on using the changeset viewer.