• 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: NSNotificationQueue & NSOperationQueue thread death
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNotificationQueue & NSOperationQueue thread death


  • Subject: Re: NSNotificationQueue & NSOperationQueue thread death
  • From: Jonathon Kuo <email@hidden>
  • Date: Wed, 6 May 2009 10:03:52 -0700

On May 6, 2009, at 9:03 AM, Michael Ash wrote:

It is correct that every thread conceptually has exactly one runloop.
I say "conceptually" because in fact they are created on demand.

So if a thread has no need to pay attention to asynchronous events (timers, input sources, etc) but is only in existence to run its own functional code (say, calculate a square root), it has no need to have a runloop running. It can simply execute in more or less linear fashion and exit.


A thread starts out with no runloop, but as soon something tries to
interact with that thread's runloop, one is created for it.


Here's where I don't quite follow. If my thread doesn't set up and explicitly run its runloop, won't async events just get ignored because the thread has no code to receive/process them?


_______________________________________________

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


  • Follow-Ups:
    • Re: NSNotificationQueue & NSOperationQueue thread death
      • From: Michael Ash <email@hidden>
    • Re: NSNotificationQueue & NSOperationQueue thread death
      • From: Ken Thomases <email@hidden>
References: 
 >NSNotificationQueue & NSOperationQueue thread death (From: Eric Hermanson <email@hidden>)
 >Re: NSNotificationQueue & NSOperationQueue thread death (From: Eric Hermanson <email@hidden>)
 >Re: NSNotificationQueue & NSOperationQueue thread death (From: Michael Ash <email@hidden>)
 >Re: NSNotificationQueue & NSOperationQueue thread death (From: Jonathon Kuo <email@hidden>)
 >Re: NSNotificationQueue & NSOperationQueue thread death (From: Michael Ash <email@hidden>)

  • Prev by Date: Re: Vector Graphic Dock Icon?
  • Next by Date: Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT!
  • Previous by thread: Re: NSNotificationQueue & NSOperationQueue thread death
  • Next by thread: Re: NSNotificationQueue & NSOperationQueue thread death
  • Index(es):
    • Date
    • Thread