Re: NSTimer not firing when computer is inactive for a while.
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