VirtualBox

Changeset 101967 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Nov 8, 2023 12:44:46 PM (15 months ago)
Author:
vboxsync
Message:

libs/xpcom/xpcom: Convert PR_Atomic* to ASMAtomic*, bugref:10545

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/listeners.h

    r98103 r101967  
    150150        NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt");
    151151        nsrefcnt count;
    152         count = PR_AtomicIncrement((PRInt32*)&mRefCnt);
     152        count = ASMAtomicIncU32((volatile uint32_t *)&mRefCnt);
    153153        NS_LOG_ADDREF(this, count, "ListenerImpl", sizeof(*this));
    154154        return count;
     
    159159        nsrefcnt count;
    160160        NS_PRECONDITION(0 != mRefCnt, "dup release");
    161         count = PR_AtomicDecrement((PRInt32 *)&mRefCnt);
     161        count = ASMAtomicDecU32((volatile uint32_t *)&mRefCnt);
    162162        NS_LOG_RELEASE(this, count, "ListenerImpl");
    163163        if (0 == count) {
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