[mythtv-commits] Ticket #11870: Channel scanning deadlock with DVB

MythTV noreply at mythtv.org
Mon Sep 23 19:55:14 UTC 2013

#11870: Channel scanning deadlock with DVB
 Reporter:  Rune Petersen <rune@…>      |          Owner:  danielk
     Type:  Bug Report - Hang/Deadlock  |         Status:  new
 Priority:  minor                       |      Milestone:  unknown
Component:  MythTV - Channel Scanner    |        Version:  0.27-fixes
 Severity:  medium                      |     Resolution:
 Keywords:                              |  Ticket locked:  0

Comment (by Rune Petersen <rune@…>):

 When debugging this I was reminded that ChannelScanSM uses the "big
 lock"/"lock everything" pattern which I'm not a big fan of.

 I have an idea for fixing it:
 Move all the work that modifies the state of to ChannelScanSM the scanner
 thread, that way we don't need to hold the big lock when evaluating or
 modifying the state.

 Is this something you would find interesting, or are there any better

 I have attaches is a PoC patch showing this.

Ticket URL: <http://code.mythtv.org/trac/ticket/11870#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center

More information about the mythtv-commits mailing list