You might try using pthreads, they're easy to use but not NSThread
easy. They have several more options and make the base NSThread is
built upon. There's a join option with pthreads where one can wait
for another to finish which might be what you're looking for. Look at
pthread_join.
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.
On Wed, May 14, 2008 at 11:26 PM, Ken Thomases <[EMAIL PROTECTED]> 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
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
On May 14, 2008, at 10:15 PM, 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:
Does your main thread wait until the background threads are done?
b.bum
Hey all,
Sorry if this has been answered before, I've been googling and not
coming up with a direct answer to my problem.
I'm working on a (should be) trivial Vote Counter program for a class.
I've elected to implement the project in Objective-C/Foundation
because I already know how to do someth