Re: Thread deadlock?
Re: Thread deadlock?
- Subject: Re: Thread deadlock?
- From: Trygve Inda <email@hidden>
- Date: Mon, 11 Aug 2008 21:15:27 +0000
- Thread-topic: Thread deadlock?
>> Which part is correct? The original code?
>
> The original code was what I meant. However I was thinking of traditional
> conditions & locks; NSConditionLock does operate at a higher level, and you
> are right that there is no need for an unconditional lock. But really, I
> don't see a need for a lock at all.
>
The real issue here is that I need to use
[self performSelectorOnMainThread:@selector(doUnsafeStuff)
withObject:nil waitUntilDone:YES];
Which blocks until the method completes, so I need a way to end the thread,
but in the original code the killThread method blocks waiting for the thread
to finish.
I probably need to launch a timer or other notification system when the
thread finishes.
Trygve
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden