[mythtv-commits] mythtv commit: r7385 by danielk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Mon Oct 3 23:07:23 UTC 2005


      Author: danielk
        Date: 2005-10-03 23:07:23 +0000 (Mon, 03 Oct 2005)
New Revision: 7385
   Changeset: http://cvs.mythtv.org/trac/changeset/7385

Modified:

   trunk/mythtv/libs/libmythtv/eithelper.cpp
   trunk/mythtv/libs/libmythtv/eithelper.h
   trunk/mythtv/libs/libmythtv/siscan.h
   trunk/mythtv/libs/libmythtv/sitypes.cpp
   trunk/mythtv/libs/libmythtv/sitypes.h

Log:

Closes #414.

I didn't use the attached patch.

It turns out the Event class was not being used in a thread-safe way.

This is due to the QString and QStringList classes it contains.
These classes use shared data and either all copies must be locked
or you must make deep copies. I added a deep copy method to Event
and use that to make this safe.

I also changed QList_Events and QListList_Events from QValueList
classes to MythDequeue classes. This lets us convert some of those
loops to simple function calls. And makes sense algorithmically 
since we use them not as vectors but as FIFO queues.






More information about the mythtv-commits mailing list