[mythtv-commits] Ticket #10254: [PATCH] libmythdb: Fix 5 second pause on mythfrontend exit

MythTV noreply at mythtv.org
Wed Jan 11 18:38:28 UTC 2012

#10254: [PATCH] libmythdb: Fix 5 second pause on mythfrontend exit
 Reporter:  lvr@…                 |           Type:  Patch - Bug Fix
   Status:  new                   |       Priority:  minor
Milestone:  unknown               |      Component:  MythTV - General
  Version:  0.24-fixes            |       Severity:  medium
 Keywords:                        |  Ticket locked:  0
 This works around the 5 second delay on exit caused by Qt checking which
 threads opened a mysql connection but did not close one.

 Only pool mysql connections created my the UI thread.

 The pool is freed by the cleanup guard which executes on the main thread.
 Therefore any pooled mysql connection made by a different thread will
 trigger the problem.  For instance, ImageLoadThread calls
 MythUIImage::LoadImage which in turn needs the theme directory name from
 the settings database.  Multiple images are loaded during statup, each
 creating a parallel mysql connection, which are then pooled when the
 thread exits.  At exit, Qt complains after all mysql connections are
 closed that the ImageLoadThreads didn't close their mysql connection.

Ticket URL: <http://code.mythtv.org/trac/ticket/10254>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center

More information about the mythtv-commits mailing list