Re: Questions about Run Loops
Re: Questions about Run Loops
- Subject: Re: Questions about Run Loops
- From: Garth Cummings <email@hidden>
- Date: Thu, 17 Nov 2005 14:04:59 -0800
Hi Geoffrey,On Nov 17, 2005, at 11:57 AM, Geoffrey Schmit wrote:
Note: If you use the higher-level Carbon and Cocoa interfaces, a run loop is set up for your thread automatically. If you use the lower level thread interfaces, such as Darwin threads, you must manually create a run loop for your thread.
I'm not sure if by Darwin threads, they mean pthreads. If so, I'm not sure how to go about creating my own run loop.
Another developer was tripped up by that wording, and I've filed a bug < rdar://problem/4338123> asking that it be clarified.
All threads on Mac OS X have a run loop, implicitly. I believe the doc was trying to explain how Carbon and Cocoa manage the run loop on the main thread for you. If you create additional threads, or if you're a command line tool, you need to create and attach event sources to the run loop yourself and then start the run loop. HTH, --gc |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden