aboutsummaryrefslogtreecommitdiffstats
path: root/timer.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2011-01-23timer.c: fixed clock skew detectionmzuther1-26/+46
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1142 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-01-23timer.c: skip intermediate timer intervalsmzuther1-15/+45
"timer_inc()" now checks how many trigger intervals have passed since a given timer has been updated. This might be due to "negative clock skew" (think of summer time) or the fact that some processing took too long (i.e. fetching of a web site). These missed trigger intervals are then skipped and the user is notified so that he may adapt his timer settings. This handling is essential, otherwise unprocessed timers might stack up and would trigger continuously while at the same time becoming notoriously late and unreliable. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1141 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-01-04indentationmichael1-2/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1139 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-11-28commented, corrected and beautified both timer and timer group codemzuther1-60/+76
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1136 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-11-27finished commenting the timer codemzuther1-43/+132
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1135 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-11-20started commenting the timer codemzuther1-42/+160
I'm not done yet, but my system is currently very unstable, and I don't want the changes to get lost... :( git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1134 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-07timer.c: two small optimizations (removed "flag"; tv_usec can't be negative)mzuther1-7/+4
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1107 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-07BUG: handle negative delays in timer_process() (timer.c)mzuther1-0/+4
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1105 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-06timer.c: I had forgotten how to initialize a "struct" :)mzuther1-3/+4
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1104 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-06BUG: compensate timers for processing delay ("timer.c")mzuther1-1/+3
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1103 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-06timer.c: exchanged "proprietary code" with timeradd() and timersub() functionsmzuther1-14/+10
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1102 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-04timer.c: removed fruitless changes to variable "flag" from timer_process()mzuther1-2/+0
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1101 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-04According to its man page, timercmp() is broken on some systems -- applied ↵mzuther1-1/+1
the recommended (and equivalent) change. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1100 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-15event plugin and dbus interface by Ed Martinmichael1-0/+38
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1053 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-09-23warn() => info()michael1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1040 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-04-15more timer fixesmichux1-8/+8
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1030 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-04-15make the code more sexy...michux1-1/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1029 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-04-15fix timestamp loop issuemichux1-0/+8
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1027 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-09-09email address changedmichael1-1/+1
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@840 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-01-14removed all tagsmichael1-55/+0
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@727 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-01-14svn properties fixedmichael1-1/+2
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@726 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2005-05-08[lcd4linux @ 2005-05-08 04:32:43 by reinelt]reinelt1-113/+120
CodingStyle added and applied git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@547 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2005-01-18[lcd4linux @ 2005-01-18 06:30:21 by reinelt]reinelt1-3/+6
added (C) to all copyright statements git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@509 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-09-19[lcd4linux @ 2004-09-19 09:31:19 by reinelt]reinelt1-3/+6
HD44780 busy flag checking improved: fall back to busy-waiting if too many errors occur git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@491 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-06-26[lcd4linux @ 2004-06-26 12:04:59 by reinelt]reinelt1-2/+6
uh-oh... the last CVS log message messed up things a lot... git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@481 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-06-26[lcd4linux @ 2004-06-26 09:27:20 by reinelt]reinelt1-15/+21
added '-W' to CFLAGS changed all C++ comments to C ones ('//' => '/* */') cleaned up a lot of signed/unsigned mistakes git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@480 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-06-20[lcd4linux @ 2004-06-20 10:09:52 by reinelt]reinelt1-3/+7
'const'ified the whole source git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@476 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-06-01[lcd4linux @ 2004-06-01 06:45:28 by reinelt]reinelt1-3/+14
some Fixme's processed documented some code git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@456 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-03-03[lcd4linux @ 2004-03-03 04:44:16 by reinelt]reinelt1-4/+12
changes (cosmetics?) to the big patch from Martin hash patch un-applied git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@385 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-03-03[lcd4linux @ 2004-03-03 03:47:04 by reinelt]reinelt1-1/+15
big patch from Martin Hejl: - use qprintf() where appropriate - save CPU cycles on gettimeofday() - add quit() functions to free allocated memory - fixed lots of memory leaks git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@384 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-30[lcd4linux @ 2004-01-30 20:57:55 by reinelt]reinelt1-1/+9
HD44780 patch from Martin Hejl dmalloc integrated git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@348 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-29[lcd4linux @ 2004-01-29 04:40:02 by reinelt]reinelt1-1/+6
every .c file includes "config.h" now git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@344 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-18[lcd4linux @ 2004-01-18 09:01:45 by reinelt]reinelt1-6/+4
/proc/stat parsing finished git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@319 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-13[lcd4linux @ 2004-01-13 08:18:07 by reinelt]reinelt1-0/+178
timer queues added liblcd4linux deactivated turing transformation to new layout git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@308 3ae390bd-cb1e-0410-b409-cd5a39f66f1f