VirtualBox

Changeset 25718 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jan 11, 2010 1:32:51 PM (15 years ago)
Author:
vboxsync
Message:

PDMCritSect: Fixed uSubClass assertion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMCritSect.cpp

    r25704 r25718  
    127127    if (RT_SUCCESS(rc))
    128128    {
    129         rc = RTLockValidatorRecExclCreate(&pCritSect->Core.pValidatorRec, NIL_RTLOCKVALCLASS, 0, pCritSect, true, "%s", pszName);
     129#ifndef PDMCRITSECT_STRICT
     130        pCritSect->Core.pValidatorRec = NULL;
     131#else
     132        rc = RTLockValidatorRecExclCreate(&pCritSect->Core.pValidatorRec, NIL_RTLOCKVALCLASS, RTLOCKVAL_SUB_CLASS_NONE,
     133                                          pCritSect, true, "%s", pszName);
     134#endif
    130135        if (RT_SUCCESS(rc))
    131136        {
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