Skip navigation.
 
mlRe: any help with [NSThread initWithTarget:selector:object]???
FROM : Ken Thomases
DATE : Thu May 15 10:03:13 2008

On May 15, 2008, at 1:02 AM, Alex Esplin wrote:

> When you start a
> thread with [threadname start] how do you wait for it?  I can't seem
> to find anything on that...


There doesn't seem to be any "join"-type functionality in NSThread. 
You have to use thread synchronization primitives, I suppose. 
NSConditionLock is a good candidate.

Cheers,
Ken

Related mailsAuthorDate
mlany help with [NSThread initWithTarget:selector:object]??? Alex Esplin May 15, 07:15
mlRe: any help with [NSThread initWithTarget:selector:object]??? Bill Bumgarner May 15, 07:25
mlRe: any help with [NSThread initWithTarget:selector:object]??? Ken Thomases May 15, 07:26
mlRe: any help with [NSThread initWithTarget:selector:object]??? Alex Esplin May 15, 08:02
mlRe: any help with [NSThread initWithTarget:selector:object]??? Ken Thomases May 15, 10:03
mlRe: any help with [NSThread initWithTarget:selector:object]??? Michael Vannorsdel May 15, 10:09