[mythtv] [patch] osdlistbtntype m_itemList pos corruption.

Isaac Richards ijr at po.cwru.edu
Mon Jun 14 21:23:57 EDT 2004


On Monday 14 June 2004 10:44 am, Kenneth Aafløy wrote:
> On Monday 14 June 2004 16:24, David Engel wrote:
> > On Mon, Jun 14, 2004 at 07:11:52AM +0200, Kenneth Aafl?y wrote:
> > > +class CleanLock
> > > +{
> > > +  public:
> > > +    CleanLock(QMutex *mutex): m_mutex(mutex) { m_mutex->lock(); }
> > > +    ~CleanLock() { m_mutex->unlock(); };
> > > +  private:
> > > +    QMutex *m_mutex;
> > > +};
> >
> > Why didn't you use QMutexLocker?
>
> Very good question, didn't know it was there :)
> Thanks for letting me know..attached a new patch.

Are you sure this is correct?  SetItemCurrent(int) looks like it'll deadlock, 
to me..

Isaac


More information about the mythtv-dev mailing list