improved debug messages a bit
authorGunnar Sletta <gunnar.sletta@nokia.com>
Wed, 10 Aug 2011 13:35:52 +0000 (15:35 +0200)
committerKim M. Kalland <kim.kalland@nokia.com>
Thu, 11 Aug 2011 08:21:33 +0000 (10:21 +0200)
Change-Id: I2f1d90faba1fe508b7638b857b9803e0281de5d4
Reviewed-on: http://codereview.qt.nokia.com/2826
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
src/declarative/items/qsgcanvas.cpp

index 5717ce8..19e9f99 100644 (file)
@@ -1966,7 +1966,7 @@ void QSGCanvasRenderThread::run()
     }
 
 #ifdef THREAD_DEBUG
-    printf("                RenderThread: exited... Good Night!\n");
+    printf("                RenderThread: render loop exited... Good Night!\n");
 #endif
 
     guiContext->doneCurrent();
@@ -1978,6 +1978,10 @@ void QSGCanvasRenderThread::run()
 #endif
     wake();
     unlock();
+
+#ifdef THREAD_DEBUG
+    printf("                RenderThread: All done...\n");
+#endif
 }
 
 
@@ -2172,6 +2176,11 @@ void QSGCanvasRenderThread::stopRenderThread()
     // Actually wait for the thread to terminate.  Otherwise we can delete it
     // too early and crash.
     QThread::wait();
+
+#ifdef THREAD_DEBUG
+    printf("GUI: thread has terminated and we're all good..\n");
+#endif
+
 }