VirtualBox

Ignore:
Timestamp:
Nov 8, 2023 12:44:46 PM (17 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160064
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/glue/nsISupportsImpl.h

    r65406 r101967  
    4747
    4848#include "prthread.h" /* needed for thread-safety checks */
    49 #include "pratom.h"   /* needed for PR_AtomicIncrement and PR_AtomicDecrement */
    5049
    5150#include "nsDebug.h"
     
    740739  NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt");                   \
    741740  nsrefcnt count;                                                             \
    742   count = PR_AtomicIncrement((PRInt32*)&mRefCnt);                             \
     741  count = ASMAtomicIncU32((volatile uint32_t *)&mRefCnt);                     \
    743742  NS_LOG_ADDREF(this, count, #_class, sizeof(*this));                         \
    744743  return count;                                                               \
     
    793792  nsrefcnt count;                                                             \
    794793  NS_PRECONDITION(0 != mRefCnt, "dup release");                               \
    795   count = PR_AtomicDecrement((PRInt32 *)&mRefCnt);                            \
     794  count = ASMAtomicDecI32((volatile uint32_t *)&mRefCnt);                     \
    796795  NS_LOG_RELEASE(this, count, #_class);                                       \
    797796  if (0 == count) {                                                           \
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