[mythtv-commits] Re: Ticket #551: blocking in ThreadedFileWriter

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


#551: blocking in ThreadedFileWriter
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |        Owner:  danielk 
     Type:  defect     |       Status:  assigned
 Priority:  critical   |    Milestone:  0.19    
Component:  mythtv     |      Version:  head    
 Severity:  medium     |   Resolution:          
-----------------------+----------------------------------------------------
Comment (by danielk):

 (In [7846]) 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.

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/551>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list