FROM : Ken Thomases
DATE : Thu May 15 07:26:10 2008
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.
So, I suspect your threads are never getting a chance to run because
main is exiting.
Cheers,
Ken
DATE : Thu May 15 07:26:10 2008
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.
So, I suspect your threads are never getting a chance to run because
main is exiting.
Cheers,
Ken
| Related mails | Author | Date |
|---|---|---|
| Alex Esplin | May 15, 07:15 | |
| Bill Bumgarner | May 15, 07:25 | |
| Ken Thomases | May 15, 07:26 | |
| Alex Esplin | May 15, 08:02 | |
| Ken Thomases | May 15, 10:03 | |
| Michael Vannorsdel | May 15, 10:09 |






Cocoa mail archive

