Commit Graph

35 Commits

Author SHA1 Message Date
mzuther
f17287509f timer.c: fixed detection of positive clock skew (and some typos)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1143 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-02-12 22:46:19 +00:00
mzuther
5e69b1e396 timer.c: fixed clock skew detection
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1142 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-01-23 22:45:46 +00:00
mzuther
c15760b9e5 timer.c: skip intermediate timer intervals
"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-23 17:01:08 +00:00
michael
f95cad51ea indentation
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1139 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2011-01-04 01:58:59 +00:00
mzuther
475fdb4397 commented, corrected and beautified both timer and timer group code
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1136 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-11-28 16:07:16 +00:00
mzuther
00db296b07 finished commenting the timer code
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1135 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-11-27 14:35:10 +00:00
mzuther
20e4961f9e started commenting the timer code
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-11-20 20:22:05 +00:00
mzuther
b35fc3f8cb timer.c: two small optimizations (removed "flag"; tv_usec can't be negative)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1107 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-07 20:45:51 +00:00
mzuther
dcb29d2726 BUG: handle negative delays in timer_process() (timer.c)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1105 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-07 02:52:59 +00:00
mzuther
7a8ba6a113 timer.c: I had forgotten how to initialize a "struct" :)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1104 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-06 23:51:27 +00:00
mzuther
fd89168c6b BUG: compensate timers for processing delay ("timer.c")
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1103 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-06 21:42:05 +00:00
mzuther
43aef95679 timer.c: exchanged "proprietary code" with timeradd() and timersub() functions
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1102 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-06 11:29:12 +00:00
mzuther
15d08f4e90 timer.c: removed fruitless changes to variable "flag" from timer_process()
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1101 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-04 13:48:59 +00:00
mzuther
39494819fd According to its man page, timercmp() is broken on some systems -- applied the recommended (and equivalent) change.
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1100 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-02-04 13:18:13 +00:00
michael
3f6579900c event plugin and dbus interface by Ed Martin
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1053 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-11-15 06:49:13 +00:00
michael
a1c9da8138 warn() => info()
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1040 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-09-23 04:14:17 +00:00
michux
2fc3bb1ea3 more timer fixes
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1030 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-04-15 21:32:24 +00:00
michux
0d2efa950d make the code more sexy...
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1029 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-04-15 19:37:30 +00:00
michux
6454194b7c fix timestamp loop issue
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1027 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-04-15 19:28:30 +00:00
michael
6d5d1055ea email address changed
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@840 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-09-09 12:17:42 +00:00
michael
a9d650fb4d removed all tags
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@727 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-01-14 08:21:55 +00:00
michael
eff1e17fc3 svn properties fixed
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@726 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-01-14 07:58:10 +00:00
reinelt
dbf5d92605 [lcd4linux @ 2005-05-08 04:32:43 by reinelt]
CodingStyle added and applied

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@547 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2005-05-08 04:32:45 +00:00
reinelt
ae6d2a0a26 [lcd4linux @ 2005-01-18 06:30:21 by reinelt]
added (C) to all copyright statements

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@509 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2005-01-18 06:30:24 +00:00
reinelt
35e7434afb [lcd4linux @ 2004-09-19 09:31:19 by reinelt]
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-09-19 09:31:19 +00:00
reinelt
d7461c4f0e [lcd4linux @ 2004-06-26 12:04:59 by reinelt]
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 12:05:00 +00:00
reinelt
1338a264d5 [lcd4linux @ 2004-06-26 09:27:20 by reinelt]
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-26 09:27:21 +00:00
reinelt
7ac3e2a7d2 [lcd4linux @ 2004-06-20 10:09:52 by reinelt]
'const'ified the whole source

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@476 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-06-20 10:09:56 +00:00
reinelt
8dc94dba65 [lcd4linux @ 2004-06-01 06:45:28 by reinelt]
some Fixme's processed
documented some code

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@456 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-06-01 06:45:30 +00:00
reinelt
b9a217e0dc [lcd4linux @ 2004-03-03 04:44:16 by reinelt]
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 04:44:16 +00:00
reinelt
9ef4282e9e [lcd4linux @ 2004-03-03 03:47:04 by reinelt]
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-03-03 03:47:04 +00:00
reinelt
f040b60270 [lcd4linux @ 2004-01-30 20:57:55 by reinelt]
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-30 20:57:56 +00:00
reinelt
c55aed7370 [lcd4linux @ 2004-01-29 04:40:02 by reinelt]
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-29 04:40:03 +00:00
reinelt
dab42916ca [lcd4linux @ 2004-01-18 09:01:45 by reinelt]
/proc/stat parsing finished

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@319 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-18 09:01:45 +00:00
reinelt
3cac782447 [lcd4linux @ 2004-01-13 08:18:07 by reinelt]
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
2004-01-13 08:18:20 +00:00