• 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
What happens with timers and slow functions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What happens with timers and slow functions?


  • Subject: What happens with timers and slow functions?
  • From: Jonathan del Strother <email@hidden>
  • Date: Sun, 21 Dec 2003 12:35:01 +0000

I'm using an NSTimer to control physics / graphics updates to a simulation.

What happens if the function that the timer calls takes longer to execute than the timer's interval?

Will the timeout be ignored? Is the function call queued up somewhere, so that even if I kill the timer, I'll receive a bunch of timeouts while the queue empties? Or is the function call made straight away, so it's running simultaneously to any previous function calls?

Thanks,
Jon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: What happens with timers and slow functions?
      • From: p3consulting <email@hidden>
  • Prev by Date: Disabling cells in NSTableView
  • Next by Date: Re: Disabling cells in NSTableView
  • Previous by thread: Re: Disabling cells in NSTableView
  • Next by thread: Re: What happens with timers and slow functions?
  • Index(es):
    • Date
    • Thread