summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorMonty Brandenberg <monty@lindenlab.com>2012-06-12 12:41:09 -0400
committerMonty Brandenberg <monty@lindenlab.com>2012-06-12 12:41:09 -0400
commit24e16e1632974057013b86300bb60954ea6f5684 (patch)
tree09fccb4bcbf24721129e1d01bdb2e3337cd9ccc2 /indra/llcommon
parent75242eab8f8a892c792681fca080d86cfbb3e061 (diff)
Convert _refcounted.h over to using LLAtomic32<>.
Beware of bad documentation. operator--(int) does not return what the header claimed it did.
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llapr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llcommon/llapr.h b/indra/llcommon/llapr.h
index af33ce666f..034546c3f3 100644
--- a/indra/llcommon/llapr.h
+++ b/indra/llcommon/llapr.h
@@ -168,7 +168,7 @@ public:
void operator -=(Type x) { apr_atomic_sub32(&mData, apr_uint32_t(x)); }
void operator +=(Type x) { apr_atomic_add32(&mData, apr_uint32_t(x)); }
Type operator ++(int) { return apr_atomic_inc32(&mData); } // Type++
- Type operator --(int) { return apr_atomic_dec32(&mData); } // Type--
+ Type operator --(int) { return apr_atomic_dec32(&mData); } // approximately --Type (0 if final is 0, non-zero otherwise)
private:
apr_uint32_t mData;