Add hashed objects to the tracked class list.

This commit is contained in:
JoelKatz
2012-10-31 16:02:38 -07:00
parent ca65e5ad8f
commit 7fa7a5e2cc
2 changed files with 5 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
#include "Log.h"
SETUP_LOG();
DECLARE_INSTANCE(HashedObject);
HashedObjectStore::HashedObjectStore(int cacheSize, int cacheAge) :
mCache(cacheSize, cacheAge), mWritePending(false)

View File

@@ -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<HashedObject> pointer;