[mythtv-commits] Ticket #12754: deadlock at startup with CEC enabled
MythTV
noreply at mythtv.org
Mon Dec 5 10:41:43 UTC 2016
#12754: deadlock at startup with CEC enabled
----------------------------------------+-------------------------
Reporter: bbaetz@… | Owner: stuarta
Type: Bug Report - Hang/Deadlock | Status: closed
Priority: minor | Milestone: 0.28.1
Component: MythTV - General | Version: 0.28.0
Severity: medium | Resolution: fixed
Keywords: patch | Ticket locked: 0
----------------------------------------+-------------------------
Changes (by Bradley Baetz <bbaetz@…>):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"22ff48d7bafc622246141094b727dab47662bc3f/mythtv"]:
{{{
#!CommitTicketReference repository="mythtv"
revision="22ff48d7bafc622246141094b727dab47662bc3f"
Fixes #12754 - Fix deadlock in libcec initialization.
Configuring the TV at startup is done from the main thread. However, when
the
TV state changes as a result of this, libCEC sends a message to the
callback
handler on its own thread, which tries to get the UI lock to reset the
screensaver state. This results in a deadlock because the main thread
already
has the UI lock during startup time.
Instead, run the initial setup activity at the start of the CEC handler
thread.
This was missed in the patch applied for #11986.
Signed-off-by: Stuart Auchterlonie <stuarta at mythtv.org>
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12754#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list