Changeset 101967 in vbox for trunk/src/libs/xpcom18a4/xpcom/glue
- Timestamp:
- Nov 8, 2023 12:44:46 PM (17 months ago)
- svn:sync-xref-src-repo-rev:
- 160064
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/glue/nsISupportsImpl.h
r65406 r101967 47 47 48 48 #include "prthread.h" /* needed for thread-safety checks */ 49 #include "pratom.h" /* needed for PR_AtomicIncrement and PR_AtomicDecrement */50 49 51 50 #include "nsDebug.h" … … 740 739 NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt"); \ 741 740 nsrefcnt count; \ 742 count = PR_AtomicIncrement((PRInt32*)&mRefCnt);\741 count = ASMAtomicIncU32((volatile uint32_t *)&mRefCnt); \ 743 742 NS_LOG_ADDREF(this, count, #_class, sizeof(*this)); \ 744 743 return count; \ … … 793 792 nsrefcnt count; \ 794 793 NS_PRECONDITION(0 != mRefCnt, "dup release"); \ 795 count = PR_AtomicDecrement((PRInt32 *)&mRefCnt);\794 count = ASMAtomicDecI32((volatile uint32_t *)&mRefCnt); \ 796 795 NS_LOG_RELEASE(this, count, #_class); \ 797 796 if (0 == count) { \
Note:
See TracChangeset
for help on using the changeset viewer.