Skip navigation.
 
mlRe: any help with [NSThread initWithTarget:selector:object]???
FROM : Alex Esplin
DATE : Thu May 15 08:02:48 2008

On Wed, May 14, 2008 at 11:26 PM, Ken Thomases <<email_removed>> wrote:
> On May 15, 2008, at 12:15 AM, Alex Esplin wrote:

>>
>> Everything compiles, and when I run it, the Console tells me that
>> debugging completed normally.  However, I'm getting nothing in the way
>> of output from any of the threads:

>
> Is your main function waiting for the threads to complete, or is it just
> exiting?  When your main function returns, there's an implicit exit() call
> and your whole process exits.  There's no implicit waiting for all threads
> to complete.


Doh.  I knew I had to be missing something trivial.  When you start a
thread with [threadname start] how do you wait for it?  I can't seem
to find anything on that...

--
Alex Esplin

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