Re: Question on threads running in my Foundation tool
Re: Question on threads running in my Foundation tool
- Subject: Re: Question on threads running in my Foundation tool
- From: Ken Thomases <email@hidden>
- Date: Fri, 20 Feb 2009 18:23:39 -0600
On Feb 20, 2009, at 1:15 PM, Charles E. Heizer wrote:
Since this app is a bit of a scheduler for the tasks it could be
running for a while, so for my testing I implemented a while loop to
keep it running.
BOOL isRunning = YES;
while(isRunning)
{
sleep(10);
}
That's not a run loop. A run loop is a specific concept supported by
Cocoa and Core Foundation. Look up CFRunLoop and NSRunLoop.
The above loop won't help in the cleanup of those framework-created
threads, at all.
Cheers,
Ken
_______________________________________________
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