summaryrefslogtreecommitdiff
path: root/include/utils/RefBase.h
diff options
context:
space:
mode:
author Jean-Baptiste Queru <jbq@google.com> 2009-11-12 18:45:53 -0800
committer Jean-Baptiste Queru <jbq@google.com> 2009-11-13 13:53:39 -0800
commitcc8c35cee5de7fdf2d79a1a3716120b64301cdfe (patch)
treea9acd18ab5526d297928f96c094ca22eaa33e593 /include/utils/RefBase.h
parentcdcee265cad1fe10960bd3df32ac76c4afbd3963 (diff)
eclair snapshot
Diffstat (limited to 'include/utils/RefBase.h')
-rw-r--r--include/utils/RefBase.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/utils/RefBase.h b/include/utils/RefBase.h
index cbda0fd80d..bd7f28cae3 100644
--- a/include/utils/RefBase.h
+++ b/include/utils/RefBase.h
@@ -156,6 +156,10 @@ public:
delete static_cast<const T*>(this);
}
}
+ //! DEBUGGING ONLY: Get current strong ref count.
+ inline int32_t getStrongCount() const {
+ return mCount;
+ }
protected:
inline ~LightRefBase() { }