summaryrefslogtreecommitdiff
path: root/include/utils/RefBase.h
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2009-07-06 14:52:04 -0700
committer Mathias Agopian <mathias@google.com> 2009-07-06 14:52:04 -0700
commitd8b2a6412daef032d89c23e979758f6334b62093 (patch)
treedba55e2701d88e7bb380604520a230abb16b4b66 /include/utils/RefBase.h
parentd719890cab1eec09cbf556a3b86cc02b0f0ef8d7 (diff)
parent03a9a3449af3e0e79e9bbcd87f8057189ab9e151 (diff)
Merge commit 'goog/master_gl' into merge_master_gl
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 cbda0fd80db6..bd7f28cae3a1 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() { }