VirtualBox

Changeset 25398 in vbox for trunk/src/VBox/Runtime/r3/linux


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/r3/linux/semmutex-linux.cpp

    r25378 r25398  
    229229             */
    230230            if (pTimeout && ( pTimeout->tv_sec || pTimeout->tv_nsec ))
    231                 RTThreadBlocking(hThreadSelf, RTTHREADSTATE_MUTEX, RTSEMMUTEX_STRICT_BLOCK_ARGS(&pThis->ValidatorRec));
     231                RTSEMMUTEX_STRICT_BLOCK(hThreadSelf, &pThis->ValidatorRec);
    232232            long rc = sys_futex(&pThis->iState, FUTEX_WAIT, 2, pTimeout, NULL, 0);
    233             RTThreadUnblocked(hThreadSelf, RTTHREADSTATE_MUTEX);
     233            RTSEMMUTEX_STRICT_UNBLOCK(hThreadSelf);
    234234            if (RT_UNLIKELY(pThis->u32Magic != RTSEMMUTEX_MAGIC))
    235235                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