mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
bump refcount in threadsafe release macro. bug 30666 r=warren
This commit is contained in:
parent
ae87603b76
commit
b976efa3d2
@ -727,6 +727,7 @@ nsrefcnt _class::Release(void) \
|
||||
count = PR_AtomicDecrement((PRInt32 *)&mRefCnt); \
|
||||
NS_LOG_RELEASE(this, count, #_class); \
|
||||
if (0 == count) { \
|
||||
mRefCnt = 1; /* stabilize */ \
|
||||
/* enable this to find non-threadsafe destructors: */ \
|
||||
/* NS_ASSERT_OWNINGTHREAD(_class); */ \
|
||||
NS_DELETEXPCOM(this); \
|
||||
|
@ -727,6 +727,7 @@ nsrefcnt _class::Release(void) \
|
||||
count = PR_AtomicDecrement((PRInt32 *)&mRefCnt); \
|
||||
NS_LOG_RELEASE(this, count, #_class); \
|
||||
if (0 == count) { \
|
||||
mRefCnt = 1; /* stabilize */ \
|
||||
/* enable this to find non-threadsafe destructors: */ \
|
||||
/* NS_ASSERT_OWNINGTHREAD(_class); */ \
|
||||
NS_DELETEXPCOM(this); \
|
||||
|
Loading…
Reference in New Issue
Block a user