Skip navigation.
 
mlNSConditionLock console message: "unlocked from thread which did not lock it"
FROM : Mark Alldritt
DATE : Sun Nov 25 18:40:23 2007

Hello All,

Under Leopard, my application has begun logging console messages like this:

2007-11-25 09:09:03.572 Script Debugger 4[66788:613] *** -[NSConditionLock
unlockWithCondition:]: lock (<NSConditionLock: 0x2b5e7ed0> '(null)')
unlocked from thread which did not lock it

The message is correct: I lock the NSConditionLock from a worker thread to
block the thread until another thread (the main thread) receives a response
and the worker can continue on.

This seems to me like a legitimate use of a lock.  Can anyone explain what
the problem here is.

Cheers
-Mark
 
------------------------------------------------------------------------
Mark Alldritt                      Late Night Software Ltd.
Phone: 250-380-1725                Script Debugger 4.0 - AppleScript IDE
WEB:  http://www.latenightsw.com/  FaceSpan 4.3 - AppleScript RAD
                                  Affrus 1.0 - Perl Debugging

Related mailsAuthorDate
mlNSConditionLock console message: "unlocked from thread which did not lock it" Mark Alldritt Nov 25, 18:40
mlRe: NSConditionLock console message: "unlocked from thread which did not lock it" stephen joseph but… Nov 25, 19:23
mlRe: NSConditionLock console message: "unlocked from thread which did not lock it" stephen joseph but… Nov 25, 19:24
mlRe: NSConditionLock console message: "unlocked from thread which did not lock it" Scott Ribe Nov 25, 19:26
mlRe: NSConditionLock console message: "unlocked from thread which did not lock it" Chris Kane Nov 27, 22:32