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>
}
#ifdef THREAD_DEBUG
- printf(" RenderThread: exited... Good Night!\n");
+ printf(" RenderThread: render loop exited... Good Night!\n");
#endif
guiContext->doneCurrent();
#endif
wake();
unlock();
+
+#ifdef THREAD_DEBUG
+ printf(" RenderThread: All done...\n");
+#endif
}
// 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
+
}