[mythtv-commits] Ticket #1720: skip redundant updates in mythwelcome
MythTV
mythtv at cvs.mythtv.org
Sun Apr 23 17:21:28 UTC 2006
#1720: skip redundant updates in mythwelcome
-----------------------------+----------------------------------------------
Reporter: gnassas at mac.com | Owner: ijr
Type: patch | Status: new
Priority: minor | Milestone: 0.20
Component: mythtv | Version: 0.19
Severity: medium |
-----------------------------+----------------------------------------------
Problem: After the frontend exits mythwelcome can get overwhelmed with all
the schedule and recording list update events which were fired while it
was blocked. It kicks off a platoon of handlers which is pointless given
that they're all doing the exact same thing at the same time.
Solution: Allow only one update at a time based on a handler pending flag.
In a fit of over-engineering I guard flag accesses with mutexes to protect
those lucky ones with hyperthreading.
Result: On my epia it can take 10 seconds to chew through a dozen
SCHEDULE_CHANGE events but with this patch it never takes more than a
second or so to get the display up-to-date. Doesn't sound like much but
the only time I ever pay attention to the "next recording" bit is right
after exiting mythfrontend so having a prompt update gives my pvr that
Quality Software feel.
--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/1720>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list