diff options
| author | Richard Linden <none@none> | 2013-01-08 00:25:07 -0800 | 
|---|---|---|
| committer | Richard Linden <none@none> | 2013-01-08 00:25:07 -0800 | 
| commit | 3c341a11ab7b8f3fd18afcf3f50af6dfafa632c2 (patch) | |
| tree | c937cdcd5368a2b4665d06a1af047eebddd31737 /indra/llcorehttp | |
| parent | 68413515029f50713c70e4adec3ce6fd1022d59f (diff) | |
SH-3468 WIP add memory tracking base class
more fixes for unit test crashes
added llcommon initialization/teardown for unit tests
that indirectly trigger lltrace
changed access of atomic refcount to use preincrement/decrement
operators to reflect desired semantics
always call apr_initialize in LLCommon::initClass, even
if already initialized...apr does internal reference counting
to keep things straight
Diffstat (limited to 'indra/llcorehttp')
| -rw-r--r-- | indra/llcorehttp/_refcounted.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/indra/llcorehttp/_refcounted.h b/indra/llcorehttp/_refcounted.h index 21a916b13b..402e725152 100644 --- a/indra/llcorehttp/_refcounted.h +++ b/indra/llcorehttp/_refcounted.h @@ -72,7 +72,7 @@ private:  inline void RefCounted::addRef() const  { -	S32 count(mRefCount++); +	S32 count(++mRefCount);  	llassert_always(count >= 0);  } @@ -82,7 +82,7 @@ inline void RefCounted::release() const  	S32 count(mRefCount);  	llassert_always(count != NOT_REF_COUNTED);  	llassert_always(count > 0); -	count = mRefCount--; +	count = --mRefCount;  	// clean ourselves up if that was the last reference  	if (0 == count) | 
