[mythtv-commits] Ticket #5481: PATCH: Occasional deadlock in Mainserver::ProcessRequestThread [SVN: Trunk]
MythTV
mythtv at cvs.mythtv.org
Fri Jun 27 20:57:59 UTC 2008
#5481: PATCH: Occasional deadlock in Mainserver::ProcessRequestThread [SVN: Trunk]
---------------------------------------+------------------------------------
Reporter: tomimo at ncircle.nullnet.fi | Owner: ijr
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: head
Severity: medium | Mlocked: 0
---------------------------------------+------------------------------------
It seems that the mainserver.cpp uses QWaitCondition-variables without
proper predicative/counter. This means that if a pthread_cond_signal() is
sent before the other thread has already called QT's waitCond.wait(), the
receiver will miss the signal alltogether (see
http://doc.trolltech.com/4.3/qwaitcondition.html examples of using counter
with waitCond.wait()).
The attached patch fixes this deadlock problem for good.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/5481>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list