VirtualBox

Changeset 101916 in vbox


Ignore:
Timestamp:
Nov 7, 2023 9:22:47 AM (17 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160012
Message:

libs/xpcom: Add the possibility to use IPRT RTSEMFASTMUTEX semaphores in nsAutoLock so we can convert code to IPRT, remove some debug only code which would make it more complicated, bugref:10545 [fixes]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/threads/nsAutoLock.h

    r101914 r101916  
    112112
    113113#include <iprt/assert.h>
     114#include <iprt/errcore.h>
    114115#include <iprt/semaphore.h>
    115116
     
    164165          m_hMtx(NIL_RTSEMFASTMUTEX),
    165166          mLocked(PR_TRUE) {
    166         PR_ASSERT(mLock);
     167        Assert(mLock);
    167168
    168169        // This will assert deep in the bowels of NSPR if you attempt
     
    176177          m_hMtx(hMtx),
    177178          mLocked(PR_TRUE) {
    178         PR_ASSERT(mLock);
     179        Assert(hMtx != NIL_RTSEMFASTMUTEX);
    179180
    180181        RTSemFastMutexRequest(m_hMtx);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette