VirtualBox

Changeset 25618 in vbox for trunk/src/VBox/Runtime/r3/posix


Ignore:
Timestamp:
Jan 2, 2010 12:00:33 PM (15 years ago)
Author:
vboxsync
Message:

IPRT,pdmcritsect: More lock validator hacking.

Location:
trunk/src/VBox/Runtime/r3/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/semmutex-posix.cpp

    r25614 r25618  
    188188#ifdef RTSEMMUTEX_STRICT
    189189        hThreadSelf = RTThreadSelfAutoAdopt();
    190         int rc9 = RTLockValidatorRecExclCheckOrderAndBlocking(&pThis->ValidatorRec, hThreadSelf, pSrcPos, true);
     190        int rc9 = RTLockValidatorRecExclCheckOrderAndBlocking(&pThis->ValidatorRec, hThreadSelf, pSrcPos, true, RTTHREADSTATE_MUTEX);
    191191        if (RT_FAILURE(rc9))
    192192            return rc9;
    193193#else
    194194        hThreadSelf = RTThreadSelf();
    195 #endif
    196195        RTThreadBlocking(hThreadSelf, RTTHREADSTATE_MUTEX);
     196#endif
    197197    }
    198198
  • trunk/src/VBox/Runtime/r3/posix/semrw-posix.cpp

    r25616 r25618  
    219219#ifdef RTSEMRW_STRICT
    220220        hThreadSelf = RTThreadSelfAutoAdopt();
    221         int rc9 = RTLockValidatorRecSharedCheckOrderAndBlocking(&pThis->ValidatorRead, hThreadSelf, pSrcPos, true);
     221        int rc9 = RTLockValidatorRecSharedCheckOrderAndBlocking(&pThis->ValidatorRead, hThreadSelf, pSrcPos, true, RTTHREADSTATE_RW_READ);
    222222        if (RT_FAILURE(rc9))
    223223            return rc9;
    224224#else
    225225        hThreadSelf = RTThreadSelf();
    226 #endif
    227226        RTThreadBlocking(hThreadSelf, RTTHREADSTATE_RW_READ);
     227#endif
    228228    }
    229229
     
    381381#ifdef RTSEMRW_STRICT
    382382        hThreadSelf = RTThreadSelfAutoAdopt();
    383         int rc9 = RTLockValidatorRecExclCheckOrderAndBlocking(&pThis->ValidatorWrite, hThreadSelf, pSrcPos, true);
     383        int rc9 = RTLockValidatorRecExclCheckOrderAndBlocking(&pThis->ValidatorWrite, hThreadSelf, pSrcPos, true, RTTHREADSTATE_RW_WRITE);
    384384        if (RT_FAILURE(rc9))
    385385            return rc9;
    386386#else
    387387        hThreadSelf = RTThreadSelf();
    388 #endif
    389388        RTThreadBlocking(hThreadSelf, RTTHREADSTATE_RW_WRITE);
     389#endif
    390390    }
    391391
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette