VirtualBox

Ignore:
Timestamp:
Jan 7, 2010 10:03:06 PM (15 years ago)
Author:
vboxsync
Message:

iprt,pdmcritsect: Some more lock validator code, almost there now... :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/generic/semspinmutex-r3-generic.cpp

    r21540 r25685  
    5151    if (!pCritSect)
    5252        return VERR_NO_MEMORY;
    53     int rc = RTCritSectInit(pCritSect);
     53    int rc = RTCritSectInitEx(pCritSect, RTCRITSECT_FLAGS_NO_NESTING | RTCRITSECT_FLAGS_NO_LOCK_VAL,
     54                              NIL_RTLOCKVALCLASS, RTLOCKVAL_SUB_CLASS_NONE, "RTSemSpinMutex");
    5455    if (RT_SUCCESS(rc))
    55     {
    56         pCritSect->fFlags |= RTCRITSECT_FLAGS_NO_NESTING;
    5756        *phSpinMtx = (RTSEMSPINMUTEX)pCritSect;
    58     }
    5957    else
    6058        RTMemFree(pCritSect);
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