LWN.net Logo

Timer slack

Timer slack

Posted Feb 5, 2010 21:21 UTC (Fri) by farnz (guest, #17727)
In reply to: Timer slack by oak
Parent article: Timer slack

No. That would be a contract breach; timers are guaranteed to not fire until the time period has elapsed.

If you want a timer to fire earlier, set it to fire earlier; if you have a large range of times in which it can fire, set it to fire at the earliest of those times, and give it a very large slack, so that it can be merged with the firing of another timer.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds