bug-gnustep
[Top][All Lists]
Advanced

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

performSelectorOnMainThread: bug (with patch)


From: Philip Derrin
Subject: performSelectorOnMainThread: bug (with patch)
Date: Mon, 9 Dec 2002 01:13:11 +1100
User-agent: Mutt/1.4i

Hi,

When trying to use -performSelectorOnMainThread:withObject:
waitUntilDone:, I get the following error message:

"Uncaught exception NSConditionLockException, reason: Thread attempted to
recursively lock"

Apparently there's a race condition in GSPerformHolder. As soon as it
unlocks its condition lock in -fire, the other thread gets the lock and
releases the GSPerformHolder, which then tries to acquire the lock again
in -dealloc.

The attached patch to [GSPerformHolder fire] in NSThread.m should fix it.

Regards
Philip

-- 
_______________________________________
Philip Derrin <philipd@cse.unsw.edu.au>

Attachment: NSThread.patch
Description: Text document


reply via email to

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