VirtualBox

Changeset 8662 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
May 7, 2008 2:58:05 PM (17 years ago)
Author:
vboxsync
Message:

PDMCritSect fix.

File:
1 edited

Legend:

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

    r8651 r8662  
    381381         */
    382382#ifdef RTCRITSECT_STRICT
    383         RTThreadWriteLockDec(pCritSect->Strict.ThreadOwner);
     383        if (pCritSect->Strict.ThreadOwner != NIL_RTTHREAD) /* May happen for PDMCritSects when entering GC/R0. */
     384            RTThreadWriteLockDec(pCritSect->Strict.ThreadOwner);
    384385        ASMAtomicXchgSize(&pCritSect->Strict.ThreadOwner, NIL_RTTHREAD);
    385386#endif
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