Re: Questions about Run Loops
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com On 17/11/2005 at 11:41 AM -0800, Joseph Kelly <joeman@mac.com> wrote:
If I create a thread using pthreads, will that thread have an associated run loop or do I have to create one explicitly? The documentation I've read was not clear on this point.
Run loop creation/destruction is handled automatically.
http://developer.apple.com/documentation/CoreFoundation/Reference/ CFRunLoopRef/index.html?http://developer.apple.com/documentation/ CoreFoundation/Reference/CFRunLoopRef/Reference/reference.html
I saw that, but this statement from <http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/index.html#//apple_ref/doc/uid/10000057i> made me wonder about pthreads:
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. geoff _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Geoffrey Schmit