From 7fa7a5e2cca6892ccb757468143582067bb2bcee Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 31 Oct 2012 16:02:38 -0700 Subject: [PATCH] Add hashed objects to the tracked class list. --- src/HashedObject.cpp | 1 + src/HashedObject.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/HashedObject.cpp b/src/HashedObject.cpp index 997be4c23..bff9c34c6 100644 --- a/src/HashedObject.cpp +++ b/src/HashedObject.cpp @@ -9,6 +9,7 @@ #include "Log.h" SETUP_LOG(); +DECLARE_INSTANCE(HashedObject); HashedObjectStore::HashedObjectStore(int cacheSize, int cacheAge) : mCache(cacheSize, cacheAge), mWritePending(false) diff --git a/src/HashedObject.h b/src/HashedObject.h index a3fb8cbe0..7f3191254 100644 --- a/src/HashedObject.h +++ b/src/HashedObject.h @@ -10,6 +10,9 @@ #include "uint256.h" #include "ScopedLock.h" #include "TaggedCache.h" +#include "InstanceCounter.h" + +DEFINE_INSTANCE(HashedObject); enum HashedObjectType { @@ -20,7 +23,7 @@ enum HashedObjectType hotTRANSACTION_NODE = 4 }; -class HashedObject +class HashedObject : private IS_INSTANCE(HashedObject) { public: typedef boost::shared_ptr pointer;