Changeset 79787 in vbox
- Timestamp:
- Jul 15, 2019 11:35:03 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/lockvalidator.cpp
r79786 r79787 2905 2905 { 2906 2906 RTLOCKVALDDSTACK Stack; 2907 rtLockValidatorSerializeDetectionEnter(); 2907 2908 int rc = rtLockValidatorDdDoDetection(&Stack, pRec, pThreadSelf); 2909 rtLockValidatorSerializeDetectionLeave(); 2908 2910 if (RT_SUCCESS(rc)) 2909 2911 return VINF_SUCCESS; … … 2913 2915 for (uint32_t iLoop = 0; ; iLoop++) 2914 2916 { 2917 rtLockValidatorSerializeDetectionEnter(); 2915 2918 rc = rtLockValidatorDdDoDetection(&Stack, pRec, pThreadSelf); 2919 rtLockValidatorSerializeDetectionLeave(); 2916 2920 if (RT_SUCCESS_NP(rc)) 2917 2921 return VINF_SUCCESS; … … 3373 3377 || pRecU->Excl.hClass->cMsMinDeadlock > RT_INDEFINITE_WAIT)) 3374 3378 rc = VINF_SUCCESS; 3375 else 3376 { 3377 rtLockValidatorSerializeDetectionEnter(); 3378 if (!rtLockValidatorIsSimpleNoDeadlockCase(pRecU)) 3379 rc = rtLockValidatorDeadlockDetection(pRecU, pThreadSelf, pSrcPos); 3380 rtLockValidatorSerializeDetectionLeave(); 3381 } 3379 else if (!rtLockValidatorIsSimpleNoDeadlockCase(pRecU)) 3380 rc = rtLockValidatorDeadlockDetection(pRecU, pThreadSelf, pSrcPos); 3382 3381 3383 3382 if (RT_SUCCESS(rc)) … … 3680 3679 || pRec->hClass->cMsMinDeadlock > cMillies)) 3681 3680 rc = VINF_SUCCESS; 3682 else 3683 { 3684 rtLockValidatorSerializeDetectionEnter(); 3685 if (!rtLockValidatorIsSimpleNoDeadlockCase(pRecU)) 3686 rc = rtLockValidatorDeadlockDetection(pRecU, pThreadSelf, pSrcPos); 3687 rtLockValidatorSerializeDetectionLeave(); 3688 } 3681 else if (!rtLockValidatorIsSimpleNoDeadlockCase(pRecU)) 3682 rc = rtLockValidatorDeadlockDetection(pRecU, pThreadSelf, pSrcPos); 3689 3683 3690 3684 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.