[mythtv] Ticket #3062: Freebsd compatibility patches

Isaac Richards ijr at case.edu
Sun Mar 4 22:29:07 UTC 2007


On Friday 16 February 2007 8:52:50 pm Isaac Richards wrote:
> On Wednesday 14 February 2007 9:15:21 pm Nigel Pearson wrote:
> > [much discussion on programs/mythbackend/mainserver.cpp locking deleted]
> >
> > > Actually, looking at it again, I see what the problem on freebsd
> > > could be.
> > > Easy enough to fix properly, without breaking the lock or just
> > > disabling it..
> > > =)
> > >
> > > Isaac
> >
> > Sorry to hassle you, Myth(ical) boss-man,
> > but did you make any progress on this?
> >
> > Any psuedo-code that usleep could test?
>
> Sorry, I've been out of town for work.  I still have a few thousand emails
> to read.  Basically, just need to move the socket's lock into the worker's
> run() function (before processing) instead of readyRead(), and add the
> readyReadLock to customEvent()'s 'sendstuff' clause.  I think. =)

Patch attached.  I've only tested it for a couple hours, but I'm fairly sure 
it's working as intended.  Once I get some other confirmation that it works, 
I'll commit it.

Isaac
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lock_fix.diff
Type: text/x-diff
Size: 1607 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20070304/819f479a/attachment.bin 


More information about the mythtv-dev mailing list