[mythtv-commits] mythtv commit: r22726 - in trunk/mythtv/libs by cpinkham

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Wed Nov 4 04:13:35 UTC 2009


      Author: cpinkham
        Date: 2009-11-04 04:13:35 +0000 (Wed, 04 Nov 2009)
New Revision: 22726
   Changeset: http://svn.mythtv.org/trac/changeset/22726

Modified:

   trunk/mythtv/libs/libmythdb/mythversion.h
   trunk/mythtv/libs/libmythui/mythscreenstack.cpp
   trunk/mythtv/libs/libmythui/mythscreentype.cpp
   trunk/mythtv/libs/libmythui/mythscreentype.h

Log:

Add the capability in MythScreenType for loading a screen's data in a
background thread to prevent blocking the UI thread.

A screen can now put data loading routines inside ::Load() and the data
will be loaded automatically before ::Init() is called.  To Load() data
in the background in another thread and automatically display a busy
dialog popup, the screen's ::Create() routine should call LoadInBackground()
before returning to the caller.  If LoadInBackground() is not called
explicitly, then Load() is run in the main UI thread before Init().

Load() should never be used to perform any UI work since most UI changes
are not currently thread-safe and can not be called outside the main UI
thread.

This commit modifies libmythui and bumps the binary version up, so make clean.






More information about the mythtv-commits mailing list