• 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: NSTimer not firing when computer is inactive for a while.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer not firing when computer is inactive for a while.


  • Subject: Re: NSTimer not firing when computer is inactive for a while.
  • From: Quincey Morris <email@hidden>
  • Date: Tue, 14 Nov 2017 16:57:55 -0800

On Nov 14, 2017, at 16:43 , Nathan Day <email@hidden> wrote:
>
> I have a background process that uses an NSTimer that is set to fire every
> minute, but when the computer is inactive for a while it will stop firing

My guess is that it’s not a problem with the timer, but with the quality of
service (QoS) of the thread that’s servicing the timer. If this is a background
process, it may be that the default QoS is “background”, which allows the
system to defer execution indefinitely. I would suggest you try setting the QoS
to at least “utility”, perhaps even “user initiated”.

_______________________________________________

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: NSTimer not firing when computer is inactive for a while.
      • From: Quincey Morris <email@hidden>
References: 
 >NSTimer not firing when computer is inactive for a while. (From: Nathan Day <email@hidden>)

  • Prev by Date: Re: NSTimer not firing when computer is inactive for a while.
  • Next by Date: Re: NSTimer not firing when computer is inactive for a while.
  • Previous by thread: NSTimer not firing when computer is inactive for a while.
  • Next by thread: Re: NSTimer not firing when computer is inactive for a while.
  • Index(es):
    • Date
    • Thread