VirtualBox

Changeset 25398 in vbox for trunk/src/VBox/Runtime/generic


Ignore:
Timestamp:
Dec 15, 2009 12:58:08 PM (15 years ago)
Author:
vboxsync
Message:

IPRT,PDMAllocCritSect: Don't bitch when recursivly entering a mutex.

File:
1 edited

Legend:

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

    r25373 r25398  
    321321        for (;;)
    322322        {
    323             RTThreadBlocking(hThreadSelf, RTTHREADSTATE_CRITSECT, RTCRITSECT_STRICT_BLOCK_ARGS(pCritSect->pValidatorRec));
     323            RTCRITSECT_STRICT_BLOCK(hThreadSelf, pCritSect->pValidatorRec, !(pCritSect->fFlags & RTCRITSECT_FLAGS_NO_NESTING));
    324324            int rc = RTSemEventWait(pCritSect->EventSem, RT_INDEFINITE_WAIT);
    325             RTThreadUnblocked(hThreadSelf, RTTHREADSTATE_CRITSECT);
     325            RTCRITSECT_STRICT_UNBLOCK(hThreadSelf);
    326326            if (pCritSect->u32Magic != RTCRITSECT_MAGIC)
    327327                return VERR_SEM_DESTROYED;
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