[mythtv-commits] mythtv/master commit: be81782c0 by Daniel Kristjansson (daniel-kristjansson)

MythTV noreply at mythtv.org
Thu Mar 15 18:09:22 UTC 2012


      Author:  Daniel Kristjansson <danielk at cuymedia.net>
 Change Date:  2012-03-15T11:09:10-07:00
   Push Date:  2012/03/15 11:09:15 -0700
  Repository:  mythtv
      Branch:  master
New Revision:  be81782c08dec92be7991ea9d01c6dfaaca770f4
   Changeset:  https://github.com/MythTV/mythtv/commit/be81782c0

Log:

Make sure we cleanup DB connections before thread exit (non-MThread).

Threads not using MThread needed to cleanup DB connections themselves, any many
did not. This adds MThread::ThreadSetup() and MThread::ThreadCleanup() to be called
by such threads to handle this job.

threadRegister() and threadDeregister() have been renamed and they are no longer
available for use outside libmythbase since they are called by these new MThread
functions.

Modified:

   mythtv/libs/libmythbase/logging.cpp
   mythtv/libs/libmythbase/logging.h
   mythtv/libs/libmythbase/mthread.cpp
   mythtv/libs/libmythbase/mthread.h
   mythtv/libs/libmythbase/mthreadpool.cpp
   mythtv/libs/libmythbase/mthreadpool.h
   mythtv/libs/libmythbase/mythcorecontext.cpp
   mythtv/libs/libmythbase/mythlogging.h
   mythtv/libs/libmythbase/mythversion.h
   mythtv/libs/libmythtv/darwinfirewiredevice.cpp
   mythtv/libs/libmythtv/jobqueue.cpp
   mythtv/libs/libmythui/mythuiimage.cpp
   mythtv/programs/mythtranscode/mpeg2fix.cpp
   mythtv/programs/mythtranscode/transcode.cpp



More information about the mythtv-commits mailing list