added debug destructor to persist thread

This commit is contained in:
ZappoMan 2014-03-28 11:04:27 -07:00
parent edcda16cc7
commit ce6af9ecb8
2 changed files with 5 additions and 0 deletions

View file

@ -23,6 +23,10 @@ OctreePersistThread::OctreePersistThread(Octree* tree, const QString& filename,
{
}
OctreePersistThread::~OctreePersistThread() {
qDebug() << "OctreePersistThread::~OctreePersistThread()...";
}
bool OctreePersistThread::process() {
if (!_initialLoadComplete) {

View file

@ -22,6 +22,7 @@ public:
static const int DEFAULT_PERSIST_INTERVAL = 1000 * 30; // every 30 seconds
OctreePersistThread(Octree* tree, const QString& filename, int persistInterval = DEFAULT_PERSIST_INTERVAL);
~OctreePersistThread();
bool isInitialLoadComplete() const { return _initialLoadComplete; }
quint64 getLoadElapsedTime() const { return _loadTimeUSecs; }