• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Questions about Run Loops
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Questions about Run Loops
      • From: Garth Cummings <email@hidden>
References: 
 >Re: Questions about Run Loops (From: Joseph Kelly <email@hidden>)

  • Prev by Date: Re: Questions about Run Loops
  • Next by Date: Re: Questions about Run Loops
  • Previous by thread: Re: Questions about Run Loops
  • Next by thread: Re: Questions about Run Loops
  • Index(es):
    • Date
    • Thread