Re: Questions about Run Loops
Re: Questions about Run Loops
- Subject: Re: Questions about Run Loops
- From: Geoffrey Schmit <email@hidden>
- Date: Thu, 17 Nov 2005 13:57:17 -0600
On 17/11/2005 at 11:41 AM -0800, Joseph Kelly <email@hidden> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden