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.