VirtualBox

Changeset 38081 in vbox


Ignore:
Timestamp:
Jul 20, 2011 2:21:36 PM (14 years ago)
Author:
vboxsync
Message:

PDMCritSectLeave: Release assertion if not owner.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PDMAllCritSect.cpp

    r38059 r38081  
    506506     */
    507507    RTNATIVETHREAD const hNativeSelf = pdmCritSectGetNativeSelf(pCritSect);
    508     if (RT_UNLIKELY(pCritSect->s.Core.NativeThreadOwner != hNativeSelf))
    509     {
    510 #if 1
    511         AssertMsgFailed(("%p %s: %p != %p; cLockers=%d cNestings=%d\n", pCritSect, R3STRING(pCritSect->s.pszName),
    512                          pCritSect->s.Core.NativeThreadOwner, hNativeSelf,
    513                          pCritSect->s.Core.cLockers, pCritSect->s.Core.cNestings));
    514 #else
    515         AssertReleaseMsgFailed(("%p %s: %p != %p; cLockers=%d cNestings=%d\n", pCritSect, R3STRING(pCritSect->s.pszName),
     508    AssertReleaseMsgReturnVoid(pCritSect->s.Core.NativeThreadOwner == hNativeSelf,
     509                               ("%p %s: %p != %p; cLockers=%d cNestings=%d\n", pCritSect, R3STRING(pCritSect->s.pszName),
    516510                                pCritSect->s.Core.NativeThreadOwner, hNativeSelf,
    517511                                pCritSect->s.Core.cLockers, pCritSect->s.Core.cNestings));
    518 #endif
    519         return;
    520     }
    521512    Assert(pCritSect->s.Core.cNestings >= 1);
    522513
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