• 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: Background Process?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Background Process?


  • Subject: Re: Background Process?
  • From: Shawn Erickson <email@hidden>
  • Date: Wed, 11 Mar 2009 10:07:49 -0700

On Tue, Mar 10, 2009 at 11:02 PM, Kyle Sluder <email@hidden> wrote:
> On Wed, Mar 11, 2009 at 1:53 AM, Roland King <email@hidden> wrote:
>> So you just add the timer to the runloop, run it, it sleeps until the timer
>> fires, does its thing and then goes back to sleep again. What am I missing?
>
> Well, there is a sentence directly below that list that says the following:
>
> "Because timers and other periodic events are delivered when you run
> the run loop, circumventing that loop disrupts the delivery of those
> events."
>
> That sentence implies that the run loop must be run, either manually
> or as the result of input coming in on an input source (which timers
> are not), in order for the timer to fire.

"run" basically means the thread is INSIDE a call to one of the "run"
methods of a runloop (-[NSRunLoop runUntilDate:], etc.) not that the
runloop is actively doing something (aka burning CPU). The runloop
cannot pickup timer fires, event source fires, etc. if the thread of
execution is outside of the runloop itself... that is all that
statement is saying.

-Shawn
_______________________________________________

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

References: 
 >Background Process? (From: Pierce Freeman <email@hidden>)
 >Re: Background Process? (From: Kyle Sluder <email@hidden>)
 >Re: Background Process? (From: Roland King <email@hidden>)
 >Re: Background Process? (From: Kyle Sluder <email@hidden>)
 >Re: Background Process? (From: Chris Suter <email@hidden>)
 >Re: Background Process? (From: Darren Minifie <email@hidden>)
 >Re: Background Process? (From: Michael Ash <email@hidden>)
 >Re: Background Process? (From: Kyle Sluder <email@hidden>)
 >Re: Background Process? (From: Roland King <email@hidden>)
 >Re: Background Process? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Garbage collected and non-garbage collected
  • Next by Date: Cocoaheads Lake Forest (92630) meeting 3/11/2009 (tonight!) at 7 pm on "Modeling a Game with the Cocoa Frameworks"
  • Previous by thread: Re: Background Process?
  • Next by thread: Fwd: Background Process?
  • Index(es):
    • Date
    • Thread