[mythtv-commits] mythtv commit: r7846 by danielk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Fri Nov 11 15:24:21 EST 2005


      Author: danielk
        Date: 2005-11-11 20:24:20 +0000 (Fri, 11 Nov 2005)
New Revision: 7846
   Changeset: http://cvs.mythtv.org/trac/changeset/7846

Modified:

   trunk/mythtv/libs/libmythtv/ThreadedFileWriter.cpp
   trunk/mythtv/libs/libmythtv/ThreadedFileWriter.h

Log:

References #551. Documentation, plus a little tweaking in DiskLoop().

I added code to lower the write size in DiskLoop() if TFW::Write() is already blocking. This should be small enough so that the Write() will unblock soon enough so that packets get don't get dropped, but large enough so that the next full size disk write completes before Write() blocks again.

I also added bufferHasData.wakeAll(); in Write() when it gets blocked, so that the DiskLoop doesn't just sit around waiting for more data when a buffer full situation has been reached... This added up to 100 ms to the block time.






More information about the mythtv-commits mailing list