summaryrefslogtreecommitdiffstats
path: root/src/kvilib/ext/kvi_garbage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvilib/ext/kvi_garbage.cpp')
-rw-r--r--src/kvilib/ext/kvi_garbage.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/kvilib/ext/kvi_garbage.cpp b/src/kvilib/ext/kvi_garbage.cpp
index fc4493a4..6f13aa97 100644
--- a/src/kvilib/ext/kvi_garbage.cpp
+++ b/src/kvilib/ext/kvi_garbage.cpp
@@ -48,9 +48,9 @@ void KviGarbageCollector::collect(TQObject * g)
m_pGarbageList = new KviPointerList<TQObject>;
m_pGarbageList->setAutoDelete(true);
}
- //debug("COLLECTING GARBAGE %s",g->className());
+ //tqDebug("COLLECTING GARBAGE %s",g->className());
m_pGarbageList->append(g);
-// debug("Registering garbage object %d (%s:%s)",g,g->className(),g->name());
+// tqDebug("Registering garbage object %d (%s:%s)",g,g->className(),g->name());
connect(g,TQT_SIGNAL(destroyed()),this,TQT_SLOT(garbageSuicide()));
triggerCleanup(0);
}
@@ -59,13 +59,13 @@ void KviGarbageCollector::garbageSuicide()
{
if(!m_pGarbageList)
{
- debug("Ops... garbage suicide while no garbage list");
+ tqDebug("Ops... garbage suicide while no garbage list");
return;
}
int idx = m_pGarbageList->findRef(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
if(idx == -1)
{
- debug("Ops... unregistered garbage suicide");
+ tqDebug("Ops... unregistered garbage suicide");
return;
}
m_pGarbageList->removeRef(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
@@ -77,7 +77,7 @@ void KviGarbageCollector::garbageSuicide()
void KviGarbageCollector::triggerCleanup(int iTimeout)
{
- //debug("TRIGGERING CLEANUP AFTER %d msecs",iTimeout);
+ //tqDebug("TRIGGERING CLEANUP AFTER %d msecs",iTimeout);
if(m_pCleanupTimer)
{
m_pCleanupTimer->stop();
@@ -90,26 +90,26 @@ void KviGarbageCollector::triggerCleanup(int iTimeout)
void KviGarbageCollector::cleanup()
{
- //debug("CLEANUP CALLED !");
+ //tqDebug("CLEANUP CALLED !");
if(m_pGarbageList)
{
- //debug("SOME GARBAGE TO DELETE");
+ //tqDebug("SOME GARBAGE TO DELETE");
KviPointerList<TQObject> dying;
dying.setAutoDelete(false);
for(TQObject * o = m_pGarbageList->first();o;o = m_pGarbageList->next())
{
- //debug("CHECKING GARBAGE CLASS %s",o->className());
+ //tqDebug("CHECKING GARBAGE CLASS %s",o->className());
bool bDeleteIt = m_bForceCleanupNow;
if(!bDeleteIt)
{
- //debug("CLEANUP NOT FORCED");
+ //tqDebug("CLEANUP NOT FORCED");
TQVariant v = o->property("blockingDelete");
if(v.isValid())
{
- //debug("HAS A VALID VARIANT!");
-// debug("[Garbage collector]: garbage has a blockingDelete property");
+ //tqDebug("HAS A VALID VARIANT!");
+// tqDebug("[Garbage collector]: garbage has a blockingDelete property");
bDeleteIt = !(v.toBool());
-// if(!bDeleteIt)debug("And doesn't want to be delete now!");
+// if(!bDeleteIt)tqDebug("And doesn't want to be delete now!");
} else bDeleteIt = true; // must be deleted
}
if(bDeleteIt)dying.append(o);
@@ -117,7 +117,7 @@ void KviGarbageCollector::cleanup()
for(TQObject * o2 = dying.first();o2;o2 = dying.next())
{
- //debug("KILLING GARBAGE CLASS %s",o2->className());
+ //tqDebug("KILLING GARBAGE CLASS %s",o2->className());
disconnect(o2,TQT_SIGNAL(destroyed()),this,TQT_SLOT(garbageSuicide()));
m_pGarbageList->removeRef(o2);
}
@@ -131,12 +131,12 @@ void KviGarbageCollector::cleanup()
if(m_pGarbageList)
{
-// debug("[Garbage collector cleanup]: Some stuff left to be deleted, will retry in a while");
+// tqDebug("[Garbage collector cleanup]: Some stuff left to be deleted, will retry in a while");
// something left to be destroyed
- if(m_bForceCleanupNow)debug("[Garbage collector]: Ops...I've left some undeleted stuff!");
+ if(m_bForceCleanupNow)tqDebug("[Garbage collector]: Ops...I've left some undeleted stuff!");
triggerCleanup(5000); // retry in 5 sec
} else {
-// debug("[Garbage collector cleanup]: Completed");
+// tqDebug("[Garbage collector cleanup]: Completed");
// nothing left to delete
if(m_pCleanupTimer)
{