[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threading problem in NSNetServices

From: Richard Frith-Macdonald
Subject: Re: Threading problem in NSNetServices
Date: Sun, 7 Jan 2007 13:38:54 +0000

On 7 Jan 2007, at 11:19, Chris Vetter wrote:


NSNetServices in SVN's -base have a bug with respect to threading, that is, it tries to lock the same lock several times. I originally avoided that problem by using pthread's spin-locks.

For a more portable implementation (I guess), the current version in -base uses GSLazyLocks, which cannot acquire a lock recursively -- as its name implies, NSRecursiveLock can.

Thanks ... I didn't realise the lock was used recursively ... I changed svn to use recursive locks.

BTW, NSNetServices are missing in Source/DocMakefile.

I added that (as well as NSValueTransformer which was also missing), and also made a few changed to get documentation to be generated without producing error/warning messages.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]