VirtualBox

Changeset 25710 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Jan 11, 2010 10:46:24 AM (15 years ago)
Author:
vboxsync
Message:

iprt: SemRW lock order bugfixes.

File:
1 edited

Legend:

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

    r25707 r25710  
    132132                va_list va;
    133133                va_start(va, pszNameFmt);
    134                 RTLockValidatorRecExclInit(&pThis->ValidatorWrite, hClass, uSubClass, pThis, fLVEnabled, pszNameFmt);
     134                RTLockValidatorRecExclInitV(&pThis->ValidatorWrite, hClass, uSubClass, pThis, fLVEnabled, pszNameFmt, va);
    135135                va_end(va);
    136136                va_start(va, pszNameFmt);
    137                 RTLockValidatorRecSharedInit(&pThis->ValidatorRead, hClass, uSubClass, pThis, false /*fSignaller*/,
    138                                              fLVEnabled, pszNameFmt);
     137                RTLockValidatorRecSharedInitV(&pThis->ValidatorRead, hClass, uSubClass, pThis, false /*fSignaller*/,
     138                                              fLVEnabled, pszNameFmt, va);
    139139                va_end(va);
    140140                RTLockValidatorRecMakeSiblings(&pThis->ValidatorWrite.Core, &pThis->ValidatorRead.Core);
     
    581581        return VINF_SUCCESS;
    582582    }
    583     pThis->cWrites--;
    584583
    585584    /*
     
    592591#endif
    593592
     593    pThis->cWrites--;
    594594    ATOMIC_SET_PTHREAD_T(&pThis->Writer, (pthread_t)-1);
    595595    int rc = pthread_rwlock_unlock(&pThis->RWLock);
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