VirtualBox

Changeset 25607 in vbox for trunk/src/VBox/Runtime/r3/linux


Ignore:
Timestamp:
Dec 31, 2009 1:21:39 PM (15 years ago)
Author:
vboxsync
Message:

iprt,pdmcritsect: Shortening and cleaning up the lock validator structure names.

File:
1 edited

Legend:

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

    r25604 r25607  
    8181#ifdef RTSEMMUTEX_STRICT
    8282    /** Lock validator record associated with this mutex. */
    83     RTLOCKVALIDATORREC  ValidatorRec;
     83    RTLOCKVALRECEXCL    ValidatorRec;
    8484#endif
    8585};
     
    120120        pThis->cNesting = 0;
    121121#ifdef RTSEMMUTEX_STRICT
    122         RTLockValidatorRecInit(&pThis->ValidatorRec, NIL_RTLOCKVALIDATORCLASS, RTLOCKVALIDATOR_SUB_CLASS_NONE, "RTSemMutex", pThis);
     122        RTLockValidatorRecExclInit(&pThis->ValidatorRec, NIL_RTLOCKVALIDATORCLASS, RTLOCKVALIDATOR_SUB_CLASS_NONE, "RTSemMutex", pThis);
    123123#endif
    124124
     
    156156    pThis->cNesting = 0;
    157157#ifdef RTSEMMUTEX_STRICT
    158     RTLockValidatorRecDelete(&pThis->ValidatorRec);
     158    RTLockValidatorRecExclDelete(&pThis->ValidatorRec);
    159159#endif
    160160
     
    167167
    168168
    169 DECL_FORCE_INLINE(int) rtSemMutexRequest(RTSEMMUTEX MutexSem, unsigned cMillies, bool fAutoResume, PCRTLOCKVALIDATORSRCPOS pSrcPos)
     169DECL_FORCE_INLINE(int) rtSemMutexRequest(RTSEMMUTEX MutexSem, unsigned cMillies, bool fAutoResume, PCRTLOCKVALSRCPOS pSrcPos)
    170170{
    171171    /*
     
    310310    int rc = rtSemMutexRequest(MutexSem, cMillies, true, NULL);
    311311#else
    312     RTLOCKVALIDATORSRCPOS SrcPos = RTLOCKVALIDATORSRCPOS_INIT_NORMAL_API();
     312    RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_NORMAL_API();
    313313    int rc = rtSemMutexRequest(MutexSem, cMillies, true, &SrcPos);
    314314#endif
     
    320320RTDECL(int) RTSemMutexRequestDebug(RTSEMMUTEX MutexSem, unsigned cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL)
    321321{
    322     RTLOCKVALIDATORSRCPOS SrcPos = RTLOCKVALIDATORSRCPOS_INIT_DEBUG_API();
     322    RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_DEBUG_API();
    323323    int rc = rtSemMutexRequest(MutexSem, cMillies, true, &SrcPos);
    324324    Assert(rc != VERR_INTERRUPTED);
     
    332332    return rtSemMutexRequest(MutexSem, cMillies, false, NULL);
    333333#else
    334     RTLOCKVALIDATORSRCPOS SrcPos = RTLOCKVALIDATORSRCPOS_INIT_NORMAL_API();
     334    RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_NORMAL_API();
    335335    return rtSemMutexRequest(MutexSem, cMillies, false, &SrcPos);
    336336#endif
     
    340340RTDECL(int) RTSemMutexRequestNoResumeDebug(RTSEMMUTEX MutexSem, unsigned cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL)
    341341{
    342     RTLOCKVALIDATORSRCPOS SrcPos = RTLOCKVALIDATORSRCPOS_INIT_DEBUG_API();
     342    RTLOCKVALSRCPOS SrcPos = RTLOCKVALSRCPOS_INIT_DEBUG_API();
    343343    return rtSemMutexRequest(MutexSem, cMillies, false, &SrcPos);
    344344}
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