Changeset 101967 in vbox for trunk/include/VBox
- Timestamp:
- Nov 8, 2023 12:44:46 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/listeners.h
r98103 r101967 150 150 NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt"); 151 151 nsrefcnt count; 152 count = PR_AtomicIncrement((PRInt32*)&mRefCnt);152 count = ASMAtomicIncU32((volatile uint32_t *)&mRefCnt); 153 153 NS_LOG_ADDREF(this, count, "ListenerImpl", sizeof(*this)); 154 154 return count; … … 159 159 nsrefcnt count; 160 160 NS_PRECONDITION(0 != mRefCnt, "dup release"); 161 count = PR_AtomicDecrement((PRInt32*)&mRefCnt);161 count = ASMAtomicDecU32((volatile uint32_t *)&mRefCnt); 162 162 NS_LOG_RELEASE(this, count, "ListenerImpl"); 163 163 if (0 == count) {
Note:
See TracChangeset
for help on using the changeset viewer.