From e443db45847dcd42c0725b7df8fbda55717ad0e1 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Wed, 16 Nov 2011 11:16:57 +0100 Subject: [PATCH] Improved comments on threaded renderer a bit Change-Id: I1ee3879bde219e0008d70117dbfdd14f7da31f18 Reviewed-by: Kim M. Kalland --- src/declarative/items/qquickcanvas.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/declarative/items/qquickcanvas.cpp b/src/declarative/items/qquickcanvas.cpp index 581d7f3..b433e02 100644 --- a/src/declarative/items/qquickcanvas.cpp +++ b/src/declarative/items/qquickcanvas.cpp @@ -259,8 +259,8 @@ have a scope focused item), and the other items will have their focus cleared. RenderThread::isRenderBlock: This variable is true when animations are not running and the render thread has gone to sleep, waiting for more to do. - RenderThread::isExternalUpdatePending: This variable is set to false during - the sync phase in the GUI thread and to true in maybeUpdate(). It is an + RenderThread::isExternalUpdatePending: This variable is set to false when + a new render pass is started and to true in maybeUpdate(). It is an indication to the render thread that another render pass needs to take place, rather than the render thread going to sleep after completing its swap. @@ -2253,7 +2253,7 @@ void QQuickCanvasRenderThread::sync(bool guiAlreadyLocked) /*! Acquires the mutex for the GUI thread. The function uses the isGuiBlocked - variable to keep track of how many recursion levels the gui is locket with. + variable to keep track of how many recursion levels the gui is locked with. We only actually acquire the mutex for the first level to avoid deadlocking ourselves. */ -- 1.7.2.5