[mythtv-commits] mythtv/master commit: d54110f57 by Gavin Hurlbut (Beirdo)

MythTV noreply at mythtv.org
Thu Apr 14 19:01:46 UTC 2011


      Author:  Gavin Hurlbut <ghurlbut at mythtv.org>
 Change Date:  2011-04-14T11:58:06-07:00
   Push Date:  2011/04/14 12:01:43 -0700
  Repository:  mythtv
      Branch:  master
New Revision:  d54110f57750b860ccd4e5169033835b0398457d
   Changeset:  https://github.com/MythTV/mythtv/commit/d54110f57

Log:

Change the AutoExpire UpdateThread to not self-delete

It seems that using this->deleteLater() as the last line in the thread's
execution can still cause an immediate deletion by the event thread, even before
the victim thread has finished executing.  This causes a segfault.  So, instead,
for detached threads whose pointers we keep, we can check that they are running
before starting a new one.

This has fixed a repeatable crashing with GreyFoxx's setup, and hopefully will
stabilize for others as well.

Modified:

   mythtv/programs/mythbackend/autoexpire.cpp
   mythtv/programs/mythbackend/autoexpire.h



More information about the mythtv-commits mailing list